Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- wgx_render.cs
- BitmapEffectState.cs
- ActivityXamlServices.cs
- MailMessageEventArgs.cs
- SettingsBase.cs
- DataDocumentXPathNavigator.cs
- ClientScriptManager.cs
- CodeVariableDeclarationStatement.cs
- CodeSnippetTypeMember.cs
- Wildcard.cs
- SuppressMergeCheckAttribute.cs
- XPathSingletonIterator.cs
- DataRelation.cs
- RequestNavigateEventArgs.cs
- FieldNameLookup.cs
- UnicodeEncoding.cs
- CookieParameter.cs
- WebPartConnectionsConnectVerb.cs
- WebServiceTypeData.cs
- XmlSchemaSet.cs
- LinqExpressionNormalizer.cs
- PreviewPrintController.cs
- ContractMapping.cs
- DnsPermission.cs
- SrgsItemList.cs
- TimeSpanValidatorAttribute.cs
- StringBlob.cs
- Endpoint.cs
- SmiXetterAccessMap.cs
- UriSectionData.cs
- ImageUrlEditor.cs
- XmlSerializer.cs
- WindowProviderWrapper.cs
- XamlStream.cs
- MessageSecurityVersion.cs
- XmlSchemaAnnotation.cs
- CodeConditionStatement.cs
- SerializerWriterEventHandlers.cs
- FactoryId.cs
- ReadOnlyCollectionBase.cs
- InitializationEventAttribute.cs
- Publisher.cs
- SafeProcessHandle.cs
- PageThemeBuildProvider.cs
- TextContainerChangedEventArgs.cs
- SecuritySessionFilter.cs
- EntityModelSchemaGenerator.cs
- Wizard.cs
- AspCompat.cs
- HebrewCalendar.cs
- LogStore.cs
- CounterSampleCalculator.cs
- Pen.cs
- AppSettings.cs
- ObjectIDGenerator.cs
- OpenFileDialog.cs
- RectAnimationClockResource.cs
- DataSetUtil.cs
- FilterRepeater.cs
- ClientFormsIdentity.cs
- HasActivatableWorkflowEvent.cs
- Empty.cs
- StyleTypedPropertyAttribute.cs
- DesignerActionListCollection.cs
- ContainerCodeDomSerializer.cs
- InstanceKeyNotReadyException.cs
- DateTimeValueSerializer.cs
- Configuration.cs
- Point3DAnimation.cs
- Dispatcher.cs
- CheckBox.cs
- CustomGrammar.cs
- AdornedElementPlaceholder.cs
- AppDomainResourcePerfCounters.cs
- Not.cs
- CssTextWriter.cs
- ExceptionAggregator.cs
- DataChangedEventManager.cs
- PropertyManager.cs
- CultureSpecificStringDictionary.cs
- XmlAttributeOverrides.cs
- ProtocolImporter.cs
- UdpTransportSettingsElement.cs
- OdbcTransaction.cs
- MimeTypeAttribute.cs
- EncoderReplacementFallback.cs
- HGlobalSafeHandle.cs
- GetPolicyDetailsRequest.cs
- ModifiableIteratorCollection.cs
- _ProxyRegBlob.cs
- CookieProtection.cs
- DrawingCollection.cs
- WebPartCatalogCloseVerb.cs
- ToolStripPanelRenderEventArgs.cs
- XmlHelper.cs
- HitTestResult.cs
- FormViewModeEventArgs.cs
- ObjectAnimationBase.cs
- querybuilder.cs
- MediaEntryAttribute.cs