Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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]; } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PartialCachingControl.cs
- SQLBinary.cs
- ISFTagAndGuidCache.cs
- NetCodeGroup.cs
- ManifestResourceInfo.cs
- SHA256.cs
- HtmlInputCheckBox.cs
- XmlTypeAttribute.cs
- ContainerParagraph.cs
- TraceHwndHost.cs
- HtmlTextArea.cs
- Substitution.cs
- RSAPKCS1SignatureFormatter.cs
- EmptyQuery.cs
- RoutedEventConverter.cs
- LinqDataSourceDeleteEventArgs.cs
- ContentOperations.cs
- userdatakeys.cs
- TableLayoutRowStyleCollection.cs
- ToolStripProgressBar.cs
- SignatureDescription.cs
- ActivityExecutorDelegateInfo.cs
- ZipFileInfoCollection.cs
- DataServiceRequestException.cs
- MessageSecurityOverTcpElement.cs
- Deserializer.cs
- XmlTypeMapping.cs
- NativeMethods.cs
- Filter.cs
- SoapCodeExporter.cs
- MenuItemCollectionEditor.cs
- ProjectionAnalyzer.cs
- ScrollPattern.cs
- SqlRowUpdatingEvent.cs
- Stroke.cs
- BrowserTree.cs
- CategoryAttribute.cs
- BindingsCollection.cs
- PointCollection.cs
- SecureStringHasher.cs
- SQLInt16Storage.cs
- DataGridColumn.cs
- EmptyStringExpandableObjectConverter.cs
- UnsafeNativeMethods.cs
- ReferentialConstraint.cs
- EncodingStreamWrapper.cs
- ExtensionFile.cs
- CacheDependency.cs
- InstancePersistenceContext.cs
- DataSvcMapFile.cs
- DecodeHelper.cs
- PersonalizablePropertyEntry.cs
- UnsafeNativeMethods.cs
- XmlSchemaInfo.cs
- SQLGuid.cs
- DataServices.cs
- ToolboxItem.cs
- FontStyleConverter.cs
- RtfControlWordInfo.cs
- DbParameterCollection.cs
- SmtpReplyReaderFactory.cs
- ExpressionBuilder.cs
- ControlParameter.cs
- ResourceDescriptionAttribute.cs
- CompModSwitches.cs
- BamlLocalizationDictionary.cs
- TraceData.cs
- RoutedEventValueSerializer.cs
- FontUnit.cs
- EntityType.cs
- MimeParameters.cs
- PointKeyFrameCollection.cs
- FileSecurity.cs
- PageThemeCodeDomTreeGenerator.cs
- LinearQuaternionKeyFrame.cs
- ManualWorkflowSchedulerService.cs
- SqlUtil.cs
- FormViewInsertEventArgs.cs
- CardSpaceException.cs
- ToolStripButton.cs
- RSAOAEPKeyExchangeFormatter.cs
- ClrPerspective.cs
- EventWaitHandle.cs
- DropShadowEffect.cs
- TypeToken.cs
- HandledEventArgs.cs
- TextStore.cs
- PropertyChangingEventArgs.cs
- ToolStripLabel.cs
- LayeredChannelFactory.cs
- Focus.cs
- SiteMapDataSource.cs
- SymmetricKeyWrap.cs
- SqlProcedureAttribute.cs
- HashSetEqualityComparer.cs
- SafeNativeMethods.cs
- ScriptControlDescriptor.cs
- JournalNavigationScope.cs
- SafeNativeMethods.cs
- DataTableCollection.cs