Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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]; } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DoubleKeyFrameCollection.cs
- CustomCategoryAttribute.cs
- xmlfixedPageInfo.cs
- HierarchicalDataTemplate.cs
- TargetParameterCountException.cs
- GAC.cs
- Pointer.cs
- DesignerProperties.cs
- LinkLabelLinkClickedEvent.cs
- DeflateStream.cs
- PostBackOptions.cs
- ScrollChrome.cs
- ImageSource.cs
- AdapterUtil.cs
- UriSectionData.cs
- ObjectMaterializedEventArgs.cs
- RootAction.cs
- backend.cs
- ReceiveDesigner.xaml.cs
- Grammar.cs
- CustomTokenProvider.cs
- SafeSecurityHandles.cs
- Hyperlink.cs
- WebSysDefaultValueAttribute.cs
- ObjectListCommandsPage.cs
- DesignerEditorPartChrome.cs
- AppDomainAttributes.cs
- mediaeventargs.cs
- UiaCoreTypesApi.cs
- StrongName.cs
- SafeRightsManagementEnvironmentHandle.cs
- EventLogEntryCollection.cs
- ToolboxItem.cs
- MULTI_QI.cs
- StrongNameUtility.cs
- ShapingEngine.cs
- IisTraceWebEventProvider.cs
- TranslateTransform3D.cs
- SyntaxCheck.cs
- SnapLine.cs
- SerializationStore.cs
- ConstructorNeedsTagAttribute.cs
- HtmlTable.cs
- DiagnosticsConfigurationHandler.cs
- OleDbRowUpdatedEvent.cs
- ReadOnlyNameValueCollection.cs
- Convert.cs
- XPathConvert.cs
- IisHelper.cs
- ButtonStandardAdapter.cs
- MonthChangedEventArgs.cs
- EditorPartChrome.cs
- ArraySet.cs
- BuildDependencySet.cs
- TrackBar.cs
- DataControlReference.cs
- ErrorLog.cs
- ProxyHwnd.cs
- ObjectQuery_EntitySqlExtensions.cs
- XmlAnyAttributeAttribute.cs
- CompoundFileReference.cs
- SecurityElement.cs
- WebPartsPersonalizationAuthorization.cs
- SchemaEntity.cs
- XsltCompileContext.cs
- ContentElementAutomationPeer.cs
- _CacheStreams.cs
- StringResourceManager.cs
- ProfilePropertyNameValidator.cs
- JavaScriptObjectDeserializer.cs
- FormDesigner.cs
- TreeNode.cs
- StyleBamlRecordReader.cs
- CheckBoxPopupAdapter.cs
- ThemeDictionaryExtension.cs
- DateTimeFormat.cs
- WSHttpBindingCollectionElement.cs
- PropertyGrid.cs
- PropertyChangingEventArgs.cs
- UTF7Encoding.cs
- PropertyGeneratedEventArgs.cs
- WinInet.cs
- QueryCacheKey.cs
- SpeechRecognitionEngine.cs
- Misc.cs
- TreeNode.cs
- ArrayItemValue.cs
- ManagementObjectCollection.cs
- EntityContainerEmitter.cs
- HtmlElementErrorEventArgs.cs
- WebControlAdapter.cs
- DesignerFrame.cs
- PropertyManager.cs
- MouseActionValueSerializer.cs
- mansign.cs
- TextSelectionHighlightLayer.cs
- SafeCryptHandles.cs
- NamedPipeConnectionPoolSettings.cs
- XmlSignificantWhitespace.cs
- RichTextBoxAutomationPeer.cs