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
- Label.cs
- FunctionQuery.cs
- DataControlFieldCell.cs
- SubstitutionDesigner.cs
- ConstraintConverter.cs
- VisualStateGroup.cs
- WindowsPrincipal.cs
- EdmMember.cs
- HandledEventArgs.cs
- SimpleWebHandlerParser.cs
- MsmqIntegrationBindingCollectionElement.cs
- BoolExpressionVisitors.cs
- HyperLinkField.cs
- VSWCFServiceContractGenerator.cs
- ListViewGroup.cs
- SecurityException.cs
- AsyncContentLoadedEventArgs.cs
- TextContainer.cs
- FormatException.cs
- BindingOperations.cs
- ADMembershipUser.cs
- BasicAsyncResult.cs
- FontDriver.cs
- ClientFactory.cs
- CryptoApi.cs
- Stackframe.cs
- CryptoProvider.cs
- ToolboxCategory.cs
- LinkArea.cs
- BitmapSource.cs
- TypeValidationEventArgs.cs
- EventHandlers.cs
- SafeRightsManagementPubHandle.cs
- UserNameSecurityTokenAuthenticator.cs
- XmlCountingReader.cs
- FakeModelPropertyImpl.cs
- HtmlImage.cs
- GlyphTypeface.cs
- ColumnTypeConverter.cs
- ConfigurationStrings.cs
- GeneralTransform3DCollection.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- ClonableStack.cs
- WebPartCollection.cs
- XmlComplianceUtil.cs
- OdbcPermission.cs
- ValueQuery.cs
- OdbcErrorCollection.cs
- SafeRegistryHandle.cs
- TrackingMemoryStream.cs
- IFormattable.cs
- IdnMapping.cs
- AssociationEndMember.cs
- DependencyPropertyDescriptor.cs
- TableLayoutStyleCollection.cs
- DataGridViewAutoSizeModeEventArgs.cs
- RC2.cs
- DesignerActionMethodItem.cs
- DiagnosticTrace.cs
- MarkupProperty.cs
- EditingScopeUndoUnit.cs
- BitmapEffectState.cs
- figurelength.cs
- isolationinterop.cs
- XmlUrlResolver.cs
- ArrangedElementCollection.cs
- PolyLineSegment.cs
- dbenumerator.cs
- RightsManagementEncryptionTransform.cs
- parserscommon.cs
- CodeAttachEventStatement.cs
- InvokeProviderWrapper.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- Constraint.cs
- XmlSignatureManifest.cs
- WebEventTraceProvider.cs
- Input.cs
- FastPropertyAccessor.cs
- TextEffectCollection.cs
- bidPrivateBase.cs
- ReferenceSchema.cs
- ValidatorUtils.cs
- TextStore.cs
- DefaultValidator.cs
- Size3D.cs
- Condition.cs
- Geometry3D.cs
- GrammarBuilder.cs
- WebPartZoneDesigner.cs
- Models.cs
- MarkupCompiler.cs
- InstanceKeyNotReadyException.cs
- XmlChoiceIdentifierAttribute.cs
- ObjectContext.cs
- UnauthorizedAccessException.cs
- ControllableStoryboardAction.cs
- CompositeScriptReference.cs
- Enumerable.cs
- TypeUsageBuilder.cs
- ETagAttribute.cs