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
- ReceiveParametersContent.cs
- KeyTime.cs
- SqlProviderServices.cs
- ItemsPresenter.cs
- RadioButtonList.cs
- WinFormsUtils.cs
- HtmlElementEventArgs.cs
- MimeObjectFactory.cs
- UniqueConstraint.cs
- ConnectionManagementSection.cs
- EditableTreeList.cs
- Vector3D.cs
- DeflateStreamAsyncResult.cs
- safelink.cs
- XmlDownloadManager.cs
- ImageField.cs
- ReadWriteObjectLock.cs
- ArgumentException.cs
- ISSmlParser.cs
- Decoder.cs
- ClientSponsor.cs
- SchemaEntity.cs
- BinarySerializer.cs
- TextControlDesigner.cs
- CompressEmulationStream.cs
- PersonalizationDictionary.cs
- OneToOneMappingSerializer.cs
- ToolStripLocationCancelEventArgs.cs
- SchemaElementDecl.cs
- Types.cs
- ListChangedEventArgs.cs
- RichTextBoxContextMenu.cs
- SQLUtility.cs
- HttpDebugHandler.cs
- SelectorItemAutomationPeer.cs
- RoutedPropertyChangedEventArgs.cs
- EntityDataSourceState.cs
- CacheModeValueSerializer.cs
- FixedPageProcessor.cs
- FilteredAttributeCollection.cs
- CustomMenuItemCollection.cs
- Expressions.cs
- OleDbFactory.cs
- ExtendedPropertyDescriptor.cs
- DataTableCollection.cs
- TemplateControl.cs
- RecognizerInfo.cs
- OutputCacheSection.cs
- UsernameTokenFactoryCredential.cs
- ExpressionBuilderCollection.cs
- SafeFileMappingHandle.cs
- AdRotator.cs
- TabItem.cs
- ReferencedCollectionType.cs
- PathFigureCollection.cs
- TraceListener.cs
- OracleBFile.cs
- CollectionBuilder.cs
- FileSystemWatcher.cs
- _FixedSizeReader.cs
- BamlLocalizableResource.cs
- Control.cs
- SelectedGridItemChangedEvent.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- FontFaceLayoutInfo.cs
- SemanticResultKey.cs
- GeneratedCodeAttribute.cs
- List.cs
- LoginName.cs
- ExtendedPropertyDescriptor.cs
- HwndHost.cs
- SymbolEqualComparer.cs
- UnrecognizedPolicyAssertionElement.cs
- _TimerThread.cs
- ListViewTableRow.cs
- OracleSqlParser.cs
- ReadOnlyTernaryTree.cs
- SystemInformation.cs
- TreeWalker.cs
- LookupBindingPropertiesAttribute.cs
- SingleAnimationBase.cs
- IndicCharClassifier.cs
- OletxResourceManager.cs
- GridViewUpdateEventArgs.cs
- EqualityArray.cs
- ExeConfigurationFileMap.cs
- typedescriptorpermission.cs
- SHA1Managed.cs
- TextUtf8RawTextWriter.cs
- CharacterShapingProperties.cs
- ResXResourceWriter.cs
- GroupedContextMenuStrip.cs
- InternalMappingException.cs
- WebServiceMethodData.cs
- HitTestFilterBehavior.cs
- ErrorWebPart.cs
- UpWmlMobileTextWriter.cs
- TdsParserStaticMethods.cs
- BeginStoryboard.cs
- unitconverter.cs