Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- FixedSOMContainer.cs
- XPathNode.cs
- ServicePointManagerElement.cs
- VirtualPathProvider.cs
- PLINQETWProvider.cs
- Rights.cs
- Pair.cs
- SafeMemoryMappedViewHandle.cs
- DiagnosticsConfiguration.cs
- RTLAwareMessageBox.cs
- BamlLocalizableResourceKey.cs
- CodePropertyReferenceExpression.cs
- MasterPageBuildProvider.cs
- StylusPointPropertyInfo.cs
- TableLayoutStyle.cs
- ManualResetEvent.cs
- RootDesignerSerializerAttribute.cs
- X509Certificate.cs
- ColumnHeader.cs
- CultureSpecificStringDictionary.cs
- WebPartConnectionCollection.cs
- SqlError.cs
- XamlReaderHelper.cs
- XmlSortKey.cs
- IisTraceWebEventProvider.cs
- IsolatedStorageFilePermission.cs
- DirectionalAction.cs
- DataGridViewColumnCollection.cs
- _BaseOverlappedAsyncResult.cs
- DbDataReader.cs
- FileDialogCustomPlaces.cs
- CertificateManager.cs
- ClientApiGenerator.cs
- RequestChannelBinder.cs
- SpnEndpointIdentity.cs
- SSmlParser.cs
- BounceEase.cs
- HyperLink.cs
- ObjectStateFormatter.cs
- SerialReceived.cs
- ToolBar.cs
- SchemaDeclBase.cs
- BindingList.cs
- CompiledQuery.cs
- LogicalCallContext.cs
- RoutedEventConverter.cs
- CompoundFileStreamReference.cs
- ScriptReferenceEventArgs.cs
- DefaultPropertyAttribute.cs
- Blend.cs
- ClientTargetCollection.cs
- RestHandlerFactory.cs
- CheckPair.cs
- ProxyGenerator.cs
- UnknownWrapper.cs
- DesignerRegionMouseEventArgs.cs
- MarshalByValueComponent.cs
- SplitterEvent.cs
- FixedSOMGroup.cs
- RepeaterItemCollection.cs
- IMembershipProvider.cs
- TraceXPathNavigator.cs
- PerformanceCounterPermissionAttribute.cs
- ThreadPoolTaskScheduler.cs
- UmAlQuraCalendar.cs
- ZipIOLocalFileBlock.cs
- DataSourceSelectArguments.cs
- ContentPlaceHolder.cs
- ProxyGenerationError.cs
- HostedHttpContext.cs
- graph.cs
- IpcChannelHelper.cs
- UnionExpr.cs
- OdbcConnectionHandle.cs
- EpmCustomContentSerializer.cs
- FilteredAttributeCollection.cs
- InternalConfigRoot.cs
- ConditionCollection.cs
- SrgsRulesCollection.cs
- Label.cs
- WindowsGraphicsWrapper.cs
- RoutedEventConverter.cs
- SafeHandles.cs
- TaskFileService.cs
- CngKeyBlobFormat.cs
- Directory.cs
- WorkflowInstanceProvider.cs
- LingerOption.cs
- CqlIdentifiers.cs
- RequestQueue.cs
- TextContainer.cs
- XmlJsonReader.cs
- SystemIcmpV6Statistics.cs
- CreateUserWizard.cs
- XmlSchemaCompilationSettings.cs
- PrinterUnitConvert.cs
- WebPartMenu.cs
- PlanCompiler.cs
- TimeSpan.cs
- Metafile.cs