Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / ViewStateModeByIdAttribute.cs / 1305376 / 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; [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
- ListBoxAutomationPeer.cs
- DecoderFallbackWithFailureFlag.cs
- DataGridViewAdvancedBorderStyle.cs
- PieceNameHelper.cs
- TableParagraph.cs
- _ScatterGatherBuffers.cs
- DocumentReference.cs
- RefreshPropertiesAttribute.cs
- ColorConvertedBitmap.cs
- BuildProvider.cs
- KeyValuePairs.cs
- DataSourceCacheDurationConverter.cs
- BamlCollectionHolder.cs
- columnmapfactory.cs
- CollectionExtensions.cs
- ISCIIEncoding.cs
- FileUtil.cs
- BinaryObjectInfo.cs
- ContainerTracking.cs
- ToolStripButton.cs
- HealthMonitoringSection.cs
- SessionStateModule.cs
- DecoderNLS.cs
- Monitor.cs
- InputQueue.cs
- PointLight.cs
- ArrayMergeHelper.cs
- SmtpMail.cs
- StructuralType.cs
- CustomAttributeBuilder.cs
- TextAnchor.cs
- ProfileService.cs
- TextRunCacheImp.cs
- ThreadAttributes.cs
- ContextProperty.cs
- GenericsInstances.cs
- MembershipPasswordException.cs
- IndentedWriter.cs
- IBuiltInEvidence.cs
- TimeSpanConverter.cs
- GridEntryCollection.cs
- MailDefinition.cs
- comcontractssection.cs
- GridViewRowEventArgs.cs
- ServiceDescriptionContext.cs
- ResourceIDHelper.cs
- TreeNodeBindingDepthConverter.cs
- isolationinterop.cs
- CapabilitiesSection.cs
- assertwrapper.cs
- FileClassifier.cs
- MasterPageCodeDomTreeGenerator.cs
- ComboBoxItem.cs
- StringAttributeCollection.cs
- RayHitTestParameters.cs
- isolationinterop.cs
- HeaderCollection.cs
- MapPathBasedVirtualPathProvider.cs
- MappingException.cs
- FileAccessException.cs
- Rect.cs
- MembershipPasswordException.cs
- CompilerGeneratedAttribute.cs
- XamlStackWriter.cs
- Utils.cs
- LoadMessageLogger.cs
- WCFBuildProvider.cs
- AmbientProperties.cs
- Int16Storage.cs
- PageParserFilter.cs
- CustomErrorCollection.cs
- InstanceView.cs
- EntityUtil.cs
- ContentPlaceHolderDesigner.cs
- DataBindEngine.cs
- DataExpression.cs
- Menu.cs
- CodeNamespace.cs
- JapaneseCalendar.cs
- ProjectedSlot.cs
- AccessibleObject.cs
- StreamingContext.cs
- DataGridViewCellParsingEventArgs.cs
- HotCommands.cs
- TypefaceMetricsCache.cs
- WebPartHelpVerb.cs
- InputBuffer.cs
- SafeLibraryHandle.cs
- DbConnectionPoolGroup.cs
- SqlWriter.cs
- Stroke.cs
- TreeViewDesigner.cs
- GenericRootAutomationPeer.cs
- Assembly.cs
- DiscardableAttribute.cs
- SqlProviderServices.cs
- _NtlmClient.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- lengthconverter.cs
- MobileUserControlDesigner.cs