Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / ViewStateModeByIdAttribute.cs / 1305376 / 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; [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
- ExpressionBinding.cs
- Bezier.cs
- Publisher.cs
- ReflectionTypeLoadException.cs
- Label.cs
- QueryStringParameter.cs
- Parsers.cs
- odbcmetadatafactory.cs
- GlobalProxySelection.cs
- MarkupCompilePass1.cs
- CodeTypeParameterCollection.cs
- WindowsAuthenticationEventArgs.cs
- HwndProxyElementProvider.cs
- DnsPermission.cs
- NavigationFailedEventArgs.cs
- hebrewshape.cs
- _BufferOffsetSize.cs
- DesignTimeTemplateParser.cs
- DLinqColumnProvider.cs
- HuffmanTree.cs
- EntitySqlQueryBuilder.cs
- VisualTreeUtils.cs
- ConditionCollection.cs
- Switch.cs
- ExpressionParser.cs
- CellCreator.cs
- ObjectViewQueryResultData.cs
- FileResponseElement.cs
- DispatcherSynchronizationContext.cs
- OleDbReferenceCollection.cs
- HealthMonitoringSectionHelper.cs
- MaskedTextProvider.cs
- RecognizedPhrase.cs
- BindingExpression.cs
- DependencyPropertyConverter.cs
- DBSqlParserColumn.cs
- MasterPageParser.cs
- IconHelper.cs
- dbenumerator.cs
- ConfigurationConverterBase.cs
- DateTimeEditor.cs
- CryptoStream.cs
- PropertyGridEditorPart.cs
- IResourceProvider.cs
- Attributes.cs
- Brush.cs
- DiscoveryVersionConverter.cs
- TemplateLookupAction.cs
- XsdDataContractExporter.cs
- FreezableCollection.cs
- ZoneButton.cs
- ConnectionManagementSection.cs
- DbConnectionPoolIdentity.cs
- MediaElementAutomationPeer.cs
- IndexingContentUnit.cs
- KernelTypeValidation.cs
- GridViewRowPresenterBase.cs
- ProtocolsConfiguration.cs
- TextCompositionEventArgs.cs
- ClassHandlersStore.cs
- CellQuery.cs
- DebugTracing.cs
- EnumType.cs
- InfoCardCryptoHelper.cs
- AmbientLight.cs
- FileSecurity.cs
- TabControl.cs
- ContentType.cs
- PlatformCulture.cs
- TimeSpanParse.cs
- ImageClickEventArgs.cs
- CategoryGridEntry.cs
- UnsafeNativeMethods.cs
- BorderGapMaskConverter.cs
- UidPropertyAttribute.cs
- DataGrid.cs
- BrowserCapabilitiesFactory.cs
- CurrentTimeZone.cs
- ExtensionFile.cs
- EntityDataSourceWizardForm.cs
- CryptoKeySecurity.cs
- ClientTarget.cs
- BindingEntityInfo.cs
- DispatcherProcessingDisabled.cs
- RSAOAEPKeyExchangeFormatter.cs
- ParentQuery.cs
- ComboBoxAutomationPeer.cs
- VirtualPathProvider.cs
- EmbeddedMailObject.cs
- CompilationSection.cs
- DataSourceXmlAttributeAttribute.cs
- SuppressMessageAttribute.cs
- QilXmlWriter.cs
- ReadOnlyCollectionBase.cs
- UIElementPropertyUndoUnit.cs
- BulletedList.cs
- AnnotationComponentManager.cs
- basecomparevalidator.cs
- SByteConverter.cs
- ComponentResourceKeyConverter.cs