Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- DataControlImageButton.cs
- HtmlControl.cs
- DependencyProperty.cs
- QueryAccessibilityHelpEvent.cs
- MenuItemStyleCollection.cs
- SQLStringStorage.cs
- ItemList.cs
- SessionConnectionReader.cs
- PagesChangedEventArgs.cs
- cookie.cs
- PageWrapper.cs
- dataobject.cs
- CodeExpressionRuleDeclaration.cs
- NativeMethods.cs
- ComponentCodeDomSerializer.cs
- EqualityComparer.cs
- PreviousTrackingServiceAttribute.cs
- __ComObject.cs
- ViewStateException.cs
- ChannelTracker.cs
- DownloadProgressEventArgs.cs
- BrowserTree.cs
- StorageMappingFragment.cs
- DirtyTextRange.cs
- SettingsProviderCollection.cs
- StylusPointProperty.cs
- Int32Rect.cs
- Thickness.cs
- PrintingPermissionAttribute.cs
- DrawListViewItemEventArgs.cs
- SendAgentStatusRequest.cs
- ProgressiveCrcCalculatingStream.cs
- HttpListener.cs
- UriParserTemplates.cs
- TimeStampChecker.cs
- GenericUriParser.cs
- TypeContext.cs
- HtmlToClrEventProxy.cs
- FileSecurity.cs
- CaseStatement.cs
- AbstractExpressions.cs
- Pair.cs
- Resources.Designer.cs
- Floater.cs
- AtlasWeb.Designer.cs
- ModuleBuilderData.cs
- DataGridLinkButton.cs
- BitmapEffectInputData.cs
- DataGridLengthConverter.cs
- GenericAuthenticationEventArgs.cs
- FileNotFoundException.cs
- CheckedListBox.cs
- DiffuseMaterial.cs
- X509Utils.cs
- _ContextAwareResult.cs
- Block.cs
- EventBuilder.cs
- GregorianCalendarHelper.cs
- SoapTransportImporter.cs
- StylusPointDescription.cs
- LinkArea.cs
- shaperfactoryquerycacheentry.cs
- XPathNavigator.cs
- HttpConfigurationContext.cs
- DateTimeOffsetStorage.cs
- PassportAuthenticationEventArgs.cs
- ListParagraph.cs
- NullableFloatMinMaxAggregationOperator.cs
- IISMapPath.cs
- ExclusiveTcpListener.cs
- SetUserPreferenceRequest.cs
- StyleSheetComponentEditor.cs
- FilteredReadOnlyMetadataCollection.cs
- GenericTextProperties.cs
- HttpProfileBase.cs
- ImageButton.cs
- FileDetails.cs
- ResXResourceWriter.cs
- TypefaceCollection.cs
- TreeNodeStyle.cs
- ContextQuery.cs
- HttpProfileGroupBase.cs
- ProcessHostServerConfig.cs
- httpstaticobjectscollection.cs
- MemberJoinTreeNode.cs
- TraceEventCache.cs
- TextEvent.cs
- WebAdminConfigurationHelper.cs
- RoutedEvent.cs
- ApplicationDirectoryMembershipCondition.cs
- ColorAnimation.cs
- DocumentGridContextMenu.cs
- CompilerTypeWithParams.cs
- ReachIDocumentPaginatorSerializer.cs
- DesignerCatalogPartChrome.cs
- WebPartConnectionsConfigureVerb.cs
- _LazyAsyncResult.cs
- WebPartConnectionsCloseVerb.cs
- SystemNetworkInterface.cs
- WorkerRequest.cs