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
- ThaiBuddhistCalendar.cs
- EntityRecordInfo.cs
- DropShadowEffect.cs
- Convert.cs
- MultilineStringEditor.cs
- EntityDataSourceContainerNameItem.cs
- SerialErrors.cs
- DataTemplateSelector.cs
- TdsParserStaticMethods.cs
- SqlCaseSimplifier.cs
- CngKey.cs
- OleDbRowUpdatingEvent.cs
- CodeTypeDeclaration.cs
- DataGridCellEditEndingEventArgs.cs
- PropertyNames.cs
- RegexGroup.cs
- CharEnumerator.cs
- SqlException.cs
- ELinqQueryState.cs
- WindowShowOrOpenTracker.cs
- JournalEntry.cs
- HttpListenerResponse.cs
- Globals.cs
- StylusPlugin.cs
- DataGridViewCellStyleConverter.cs
- XDRSchema.cs
- SpellerInterop.cs
- AnimationException.cs
- CompilerCollection.cs
- OutOfMemoryException.cs
- OneToOneMappingSerializer.cs
- FormDocumentDesigner.cs
- WebPartZoneDesigner.cs
- WebPartHeaderCloseVerb.cs
- FixedSOMFixedBlock.cs
- Properties.cs
- SqlTriggerAttribute.cs
- ServiceTimeoutsBehavior.cs
- SrgsElement.cs
- DataTableNewRowEvent.cs
- Exceptions.cs
- safex509handles.cs
- ButtonBaseAutomationPeer.cs
- EntityTypeEmitter.cs
- Crypto.cs
- ExtractorMetadata.cs
- XmlSchemaParticle.cs
- ConfigurationManagerInternalFactory.cs
- TagPrefixAttribute.cs
- CompositeControlDesigner.cs
- QueryConverter.cs
- SendSecurityHeader.cs
- ActivityTrace.cs
- XmlDictionaryReader.cs
- Rect3DValueSerializer.cs
- FileDialog.cs
- ControlValuePropertyAttribute.cs
- CodePropertyReferenceExpression.cs
- ExpandCollapsePattern.cs
- CustomErrorsSectionWrapper.cs
- GZipObjectSerializer.cs
- ManagementObject.cs
- CompilationRelaxations.cs
- BindingContext.cs
- ThrowOnMultipleAssignment.cs
- DateTimeFormatInfoScanner.cs
- XamlClipboardData.cs
- GetWinFXPath.cs
- StringStorage.cs
- DeclarationUpdate.cs
- FactoryGenerator.cs
- Point4D.cs
- SystemIcons.cs
- InputLangChangeEvent.cs
- ApplicationException.cs
- SmtpNtlmAuthenticationModule.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- EditorZone.cs
- ContentDisposition.cs
- _SSPIWrapper.cs
- Visual3DCollection.cs
- InvokePattern.cs
- ActivityBuilder.cs
- PropertyInformation.cs
- XmlIncludeAttribute.cs
- XmlSchemaAnyAttribute.cs
- HighlightVisual.cs
- FixedSOMTextRun.cs
- SendingRequestEventArgs.cs
- COM2Enum.cs
- CookieParameter.cs
- DataServiceRequestOfT.cs
- AssemblyNameProxy.cs
- TextCollapsingProperties.cs
- GeometryCombineModeValidation.cs
- AppDomainProtocolHandler.cs
- RelatedEnd.cs
- EncodingInfo.cs
- safelinkcollection.cs
- CryptoKeySecurity.cs