Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / ViewStateModeByIdAttribute.cs / 3 / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MenuEventArgs.cs
- XamlSerializationHelper.cs
- ImageFormatConverter.cs
- BlurEffect.cs
- DataMemberListEditor.cs
- WeakEventTable.cs
- HttpWebResponse.cs
- MarkedHighlightComponent.cs
- _NetRes.cs
- HealthMonitoringSection.cs
- TextBlock.cs
- AnnotationResource.cs
- TextRangeSerialization.cs
- DataGridViewSelectedRowCollection.cs
- SimpleWorkerRequest.cs
- Faults.cs
- ListSurrogate.cs
- Int64Animation.cs
- Win32Native.cs
- HTTP_SERVICE_CONFIG_URLACL_KEY.cs
- SetterBase.cs
- EntityProviderFactory.cs
- CustomAttributeBuilder.cs
- DigestTraceRecordHelper.cs
- DesignerLoader.cs
- BamlResourceDeserializer.cs
- CacheVirtualItemsEvent.cs
- RenderData.cs
- ControlCollection.cs
- Border.cs
- TextRunCacheImp.cs
- DataKeyCollection.cs
- Hex.cs
- TcpChannelListener.cs
- UIPropertyMetadata.cs
- FilterElement.cs
- TextEncodedRawTextWriter.cs
- FontSource.cs
- QilTypeChecker.cs
- SemanticResultKey.cs
- ResourceProperty.cs
- XmlNamespaceMapping.cs
- CssStyleCollection.cs
- MdiWindowListStrip.cs
- Renderer.cs
- BounceEase.cs
- Cell.cs
- SqlStatistics.cs
- TableCellAutomationPeer.cs
- XmlTextReaderImplHelpers.cs
- IxmlLineInfo.cs
- CellRelation.cs
- SubMenuStyle.cs
- RadioButton.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- unitconverter.cs
- ActivityCodeGenerator.cs
- PropertyNames.cs
- PerfCounterSection.cs
- SettingsProviderCollection.cs
- EditingCoordinator.cs
- DictionaryBase.cs
- ObjectRef.cs
- ItemsPresenter.cs
- QuotedPrintableStream.cs
- SettingsBase.cs
- Clipboard.cs
- TextFormatterContext.cs
- XPathScanner.cs
- _UriTypeConverter.cs
- TextWriter.cs
- RequestQueryParser.cs
- InternalResources.cs
- ActiveXHost.cs
- WinEventWrap.cs
- GetPolicyDetailsRequest.cs
- WizardPanelChangingEventArgs.cs
- RepeaterCommandEventArgs.cs
- SecurityRuntime.cs
- DataRecordInternal.cs
- CompilerInfo.cs
- TableCellCollection.cs
- DataBinding.cs
- QuaternionIndependentAnimationStorage.cs
- DataBoundLiteralControl.cs
- XamlTemplateSerializer.cs
- CheckBoxBaseAdapter.cs
- HttpListenerRequest.cs
- ToolConsole.cs
- DotExpr.cs
- DropShadowEffect.cs
- CodeDelegateInvokeExpression.cs
- TokenBasedSet.cs
- HttpRuntime.cs
- ListBase.cs
- CuspData.cs
- SelfIssuedAuthRSACryptoProvider.cs
- ErrorWebPart.cs
- SchemaAttDef.cs
- SurrogateDataContract.cs