Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / ViewStateModeByIdAttribute.cs / 3 / ViewStateModeByIdAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Web.UI { using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] [AttributeUsage(AttributeTargets.Class)] public sealed class ViewStateModeByIdAttribute : Attribute { static Hashtable _viewStateIdTypes = Hashtable.Synchronized(new Hashtable()); public ViewStateModeByIdAttribute() { } internal static bool IsEnabled(Type type) { if (!_viewStateIdTypes.ContainsKey(type)) { System.ComponentModel.AttributeCollection attrs = TypeDescriptor.GetAttributes(type); ViewStateModeByIdAttribute attr = (ViewStateModeByIdAttribute)attrs[typeof(ViewStateModeByIdAttribute)]; _viewStateIdTypes[type] = (attr != null); } return (bool)_viewStateIdTypes[type]; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Web.UI { using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] [AttributeUsage(AttributeTargets.Class)] public sealed class ViewStateModeByIdAttribute : Attribute { static Hashtable _viewStateIdTypes = Hashtable.Synchronized(new Hashtable()); public ViewStateModeByIdAttribute() { } internal static bool IsEnabled(Type type) { if (!_viewStateIdTypes.ContainsKey(type)) { System.ComponentModel.AttributeCollection attrs = TypeDescriptor.GetAttributes(type); ViewStateModeByIdAttribute attr = (ViewStateModeByIdAttribute)attrs[typeof(ViewStateModeByIdAttribute)]; _viewStateIdTypes[type] = (attr != null); } return (bool)_viewStateIdTypes[type]; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AttachmentService.cs
- ManagedIStream.cs
- DesignerView.Commands.cs
- ProfessionalColorTable.cs
- XmlMembersMapping.cs
- WebPartAddingEventArgs.cs
- SetterTriggerConditionValueConverter.cs
- TransformationRules.cs
- TileModeValidation.cs
- FormViewModeEventArgs.cs
- XhtmlBasicCommandAdapter.cs
- ThemeableAttribute.cs
- _NestedSingleAsyncResult.cs
- WebPartEditorApplyVerb.cs
- RegexStringValidatorAttribute.cs
- TreeNodeConverter.cs
- VScrollProperties.cs
- SingleKeyFrameCollection.cs
- WindowsFormsSectionHandler.cs
- EncodingNLS.cs
- Literal.cs
- FileIOPermission.cs
- ObjectDesignerDataSourceView.cs
- ComboBoxItem.cs
- XmlException.cs
- WebEventCodes.cs
- VectorValueSerializer.cs
- WorkflowRuntimeService.cs
- ResolvedKeyFrameEntry.cs
- IntPtr.cs
- InputReportEventArgs.cs
- StatusInfoItem.cs
- FileDialog_Vista.cs
- ValidationError.cs
- JournalEntry.cs
- ActivityBuilder.cs
- ContainerUIElement3D.cs
- IFlowDocumentViewer.cs
- PhysicalAddress.cs
- OverlappedAsyncResult.cs
- TypedAsyncResult.cs
- DateTimeParse.cs
- WithStatement.cs
- ParameterBuilder.cs
- DependentList.cs
- ObjectStateFormatter.cs
- TextSelectionHighlightLayer.cs
- TextRunProperties.cs
- ReadOnlyHierarchicalDataSourceView.cs
- ActivationServices.cs
- DrawTreeNodeEventArgs.cs
- FieldTemplateFactory.cs
- AstTree.cs
- UnionExpr.cs
- CriticalFinalizerObject.cs
- Property.cs
- MissingMethodException.cs
- SerializationException.cs
- PropertyConverter.cs
- Queue.cs
- XmlAtomicValue.cs
- HeaderElement.cs
- RectConverter.cs
- FontUnit.cs
- HGlobalSafeHandle.cs
- CatalogPartDesigner.cs
- ComponentManagerBroker.cs
- PropertyRecord.cs
- TextEffectCollection.cs
- ValidationSummary.cs
- MembershipValidatePasswordEventArgs.cs
- SvcMapFileLoader.cs
- UnmanagedMemoryStream.cs
- CompatibleComparer.cs
- CalculatedColumn.cs
- DrawingGroup.cs
- TextEncodedRawTextWriter.cs
- ToolStripDropDownMenu.cs
- EmbossBitmapEffect.cs
- SettingsBase.cs
- ContentElement.cs
- SystemTcpStatistics.cs
- ApplicationSecurityManager.cs
- UniqueConstraint.cs
- _Connection.cs
- CompensationToken.cs
- XMLSyntaxException.cs
- HierarchicalDataBoundControlAdapter.cs
- DeadCharTextComposition.cs
- FixedSOMLineRanges.cs
- HttpProfileGroupBase.cs
- Sentence.cs
- FixedSOMPage.cs
- WebResourceUtil.cs
- Decoder.cs
- EntityDataSourceColumn.cs
- Style.cs
- CompositeDuplexBindingElement.cs
- DragEvent.cs
- MobileControl.cs