Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / UI / ViewStateModeByIdAttribute.cs / 1 / 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. // //----------------------------------------------------------------------------- /* */ 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StringCollection.cs
- ExtendedProperty.cs
- CollectionEditor.cs
- CompositeActivityValidator.cs
- MergePropertyDescriptor.cs
- ConfigXmlSignificantWhitespace.cs
- WindowsListViewItemStartMenu.cs
- Ref.cs
- ConsumerConnectionPointCollection.cs
- LoadWorkflowAsyncResult.cs
- MimeTypePropertyAttribute.cs
- TextMarkerSource.cs
- ListBox.cs
- DynamicVirtualDiscoSearcher.cs
- ProjectionCamera.cs
- BindingListCollectionView.cs
- UrlMappingsModule.cs
- ListDesigner.cs
- SafeEventLogReadHandle.cs
- CompositionTarget.cs
- BrowserCapabilitiesFactoryBase.cs
- BooleanStorage.cs
- SafeLocalAllocation.cs
- InternalRelationshipCollection.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- TextDecorations.cs
- AnnotationComponentChooser.cs
- EditorBrowsableAttribute.cs
- ExternalException.cs
- ComponentCodeDomSerializer.cs
- RulePatternOps.cs
- WebPartManagerInternals.cs
- SettingsPropertyValue.cs
- EventSinkHelperWriter.cs
- TrackingParameters.cs
- SQLGuid.cs
- __Filters.cs
- ResourceDictionary.cs
- COSERVERINFO.cs
- DispatcherHooks.cs
- MediaContextNotificationWindow.cs
- CodeDirectionExpression.cs
- PreloadHost.cs
- ConfigurationValues.cs
- DataGridViewBand.cs
- UnsafeNativeMethods.cs
- ComplexType.cs
- BuildManagerHost.cs
- ButtonChrome.cs
- File.cs
- PeerNameRegistration.cs
- ReceiveSecurityHeader.cs
- MsmqIntegrationReceiveParameters.cs
- Trace.cs
- InvokeMethodActivityDesigner.cs
- WebBrowserContainer.cs
- FrameworkName.cs
- WebServiceParameterData.cs
- UpdateCommandGenerator.cs
- KoreanCalendar.cs
- SerializationAttributes.cs
- DataGridViewCellCancelEventArgs.cs
- RepeatInfo.cs
- FixedTextPointer.cs
- ProcessModelSection.cs
- AssemblyFilter.cs
- ScrollBarAutomationPeer.cs
- Decimal.cs
- TaskScheduler.cs
- SynthesizerStateChangedEventArgs.cs
- ValidationResult.cs
- ManagementEventWatcher.cs
- CheckedListBox.cs
- CharEnumerator.cs
- SettingsPropertyIsReadOnlyException.cs
- GridViewSelectEventArgs.cs
- FileVersionInfo.cs
- RectValueSerializer.cs
- StreamInfo.cs
- VSWCFServiceContractGenerator.cs
- DocumentApplicationJournalEntry.cs
- CssClassPropertyAttribute.cs
- SatelliteContractVersionAttribute.cs
- ScrollBar.cs
- TextFormatter.cs
- SchemaSetCompiler.cs
- DataGridViewTopRowAccessibleObject.cs
- _SslStream.cs
- Timer.cs
- PartitionResolver.cs
- LiteralText.cs
- DomNameTable.cs
- SelectQueryOperator.cs
- TableCellCollection.cs
- CodePrimitiveExpression.cs
- NullExtension.cs
- LogSwitch.cs
- KeyTimeConverter.cs
- PrintPreviewGraphics.cs
- dataprotectionpermission.cs