Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HttpCookiesSection.cs
- WsdlBuildProvider.cs
- XmlMapping.cs
- DeploymentSection.cs
- SqlFactory.cs
- Camera.cs
- RegexMatch.cs
- CombinedGeometry.cs
- DataGridViewColumn.cs
- DataSysAttribute.cs
- FontSource.cs
- NativeMethods.cs
- FtpWebRequest.cs
- RegexParser.cs
- PathFigureCollectionConverter.cs
- ButtonFieldBase.cs
- GenericIdentity.cs
- mda.cs
- DataDocumentXPathNavigator.cs
- WebPartAuthorizationEventArgs.cs
- _DigestClient.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- ProcessThreadDesigner.cs
- WindowVisualStateTracker.cs
- KeyGesture.cs
- SortedSetDebugView.cs
- Icon.cs
- ControlPropertyNameConverter.cs
- TableParaClient.cs
- ReadOnlyDictionary.cs
- ReadWriteObjectLock.cs
- StringUtil.cs
- SelectQueryOperator.cs
- SingleAnimationUsingKeyFrames.cs
- StandardCommands.cs
- HtmlElementCollection.cs
- TextLineBreak.cs
- _NegoState.cs
- thaishape.cs
- BuiltInExpr.cs
- DiscreteKeyFrames.cs
- AstTree.cs
- WebPartDescriptionCollection.cs
- SiteMapNodeItemEventArgs.cs
- ToolStripItemClickedEventArgs.cs
- ColumnHeaderCollectionEditor.cs
- TemplatingOptionsDialog.cs
- DeferredElementTreeState.cs
- ResourceReferenceKeyNotFoundException.cs
- DataTableMappingCollection.cs
- HiddenFieldPageStatePersister.cs
- UriScheme.cs
- ExpressionCopier.cs
- Permission.cs
- SizeLimitedCache.cs
- Schema.cs
- OleDbException.cs
- DrawingServices.cs
- DataSvcMapFile.cs
- BrowserDefinition.cs
- OuterGlowBitmapEffect.cs
- BindingObserver.cs
- RelationshipEnd.cs
- OdbcEnvironmentHandle.cs
- DataRecordInternal.cs
- ApplicationActivator.cs
- DotNetATv1WindowsLogEntryDeserializer.cs
- WindowsSlider.cs
- XmlSignatureProperties.cs
- XsltException.cs
- FixedSOMTableRow.cs
- Drawing.cs
- HttpResponse.cs
- ObjectDataSourceDisposingEventArgs.cs
- MachineKeyConverter.cs
- relpropertyhelper.cs
- AutomationElementCollection.cs
- TextBreakpoint.cs
- SetterBaseCollection.cs
- ItemMap.cs
- ControlParser.cs
- HostedTransportConfigurationBase.cs
- TreeViewItemAutomationPeer.cs
- XMLDiffLoader.cs
- PerformanceCounterLib.cs
- XmlLanguageConverter.cs
- Visitor.cs
- ThaiBuddhistCalendar.cs
- ConfigurationManager.cs
- HuffModule.cs
- SizeFConverter.cs
- VirtualizingPanel.cs
- RootDesignerSerializerAttribute.cs
- SmiMetaData.cs
- BamlResourceContent.cs
- MonthChangedEventArgs.cs
- Buffer.cs
- LocalizableResourceBuilder.cs
- TemplatingOptionsDialog.cs
- Types.cs