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
- X509RawDataKeyIdentifierClause.cs
- CodeConstructor.cs
- MultipleCopiesCollection.cs
- ImageMap.cs
- backend.cs
- ExpressionBuilder.cs
- Attributes.cs
- MailSettingsSection.cs
- LinkConverter.cs
- Path.cs
- WebBrowserEvent.cs
- UIElement.cs
- Operand.cs
- OrderedDictionary.cs
- JsonObjectDataContract.cs
- MenuItemBinding.cs
- LocalClientSecuritySettings.cs
- ListParaClient.cs
- LocatorGroup.cs
- RichTextBox.cs
- QilGenerator.cs
- DataTrigger.cs
- xdrvalidator.cs
- RelationshipSet.cs
- ToolStripPanelSelectionGlyph.cs
- BitmapCache.cs
- DecoratedNameAttribute.cs
- HtmlMeta.cs
- NonClientArea.cs
- WindowsButton.cs
- StatusBar.cs
- ResourceProperty.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- ChtmlFormAdapter.cs
- SqlNode.cs
- FactoryGenerator.cs
- PackageDigitalSignature.cs
- Cell.cs
- SRGSCompiler.cs
- StyleSelector.cs
- StylusPointPropertyInfo.cs
- GridItem.cs
- TdsParserStaticMethods.cs
- HttpServerVarsCollection.cs
- SocketException.cs
- ServiceDesigner.xaml.cs
- WebConfigurationManager.cs
- OracleInfoMessageEventArgs.cs
- documentsequencetextview.cs
- CatalogZone.cs
- DataGridLinkButton.cs
- InvalidFilterCriteriaException.cs
- ProfileParameter.cs
- ConditionalAttribute.cs
- OracleParameter.cs
- PageBreakRecord.cs
- ReferenceEqualityComparer.cs
- SelectionProcessor.cs
- StandardToolWindows.cs
- ClientRuntimeConfig.cs
- ProtectedConfiguration.cs
- SqlUnionizer.cs
- mediaeventshelper.cs
- RepeaterItemCollection.cs
- StringSource.cs
- AppDomainShutdownMonitor.cs
- SurrogateChar.cs
- DataListItemCollection.cs
- MultitargetingHelpers.cs
- WindowsStatic.cs
- NonBatchDirectoryCompiler.cs
- RangeBase.cs
- NamespaceInfo.cs
- KeyTime.cs
- XmlDictionary.cs
- XmlElementAttributes.cs
- XPathNodePointer.cs
- HttpCachePolicyBase.cs
- TreeIterators.cs
- DemultiplexingClientMessageFormatter.cs
- MapPathBasedVirtualPathProvider.cs
- XmlSchemaFacet.cs
- OracleConnection.cs
- ISAPIApplicationHost.cs
- DateTimeConstantAttribute.cs
- SelectionService.cs
- ActivityMarkupSerializationProvider.cs
- ExpanderAutomationPeer.cs
- ClientTargetCollection.cs
- RevocationPoint.cs
- SmiSettersStream.cs
- XsltContext.cs
- PeerObject.cs
- QilPatternVisitor.cs
- AppSettingsExpressionBuilder.cs
- ListViewCommandEventArgs.cs
- LinqDataSourceDisposeEventArgs.cs
- LoginUtil.cs
- PropertyPathConverter.cs
- DocumentGridPage.cs