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
- OleDbParameterCollection.cs
- DataSetMappper.cs
- messageonlyhwndwrapper.cs
- HelpProvider.cs
- WorkflowMarkupSerializer.cs
- InputProviderSite.cs
- RawAppCommandInputReport.cs
- SecurityDescriptor.cs
- Wizard.cs
- DbProviderFactory.cs
- PolicyLevel.cs
- ExternalFile.cs
- SqlServer2KCompatibilityAnnotation.cs
- FilterElement.cs
- ValidationErrorEventArgs.cs
- CalloutQueueItem.cs
- FormDocumentDesigner.cs
- ConstructorNeedsTagAttribute.cs
- VisualStyleElement.cs
- Menu.cs
- ADRoleFactory.cs
- PolicyImporterElement.cs
- CmsInterop.cs
- Accessible.cs
- ElementNotEnabledException.cs
- DesignBindingPicker.cs
- SerializerProvider.cs
- TraceHwndHost.cs
- StringSource.cs
- XmlNodeReader.cs
- TextSelectionProcessor.cs
- shaperfactoryquerycacheentry.cs
- LabelAutomationPeer.cs
- ObjectMaterializedEventArgs.cs
- _Connection.cs
- SystemIcons.cs
- DetailsViewAutoFormat.cs
- PassportIdentity.cs
- RepeaterItem.cs
- StyleXamlParser.cs
- GeometryDrawing.cs
- CodeEntryPointMethod.cs
- ConfigurationLocationCollection.cs
- TemplateControl.cs
- NodeFunctions.cs
- OSFeature.cs
- ScrollPatternIdentifiers.cs
- IgnoreFileBuildProvider.cs
- StreamSecurityUpgradeAcceptor.cs
- Form.cs
- ImplicitInputBrush.cs
- ThreadStaticAttribute.cs
- Misc.cs
- StringBuilder.cs
- AuthenticationService.cs
- RuntimeEnvironment.cs
- ResourceType.cs
- ImageList.cs
- XamlToRtfWriter.cs
- CapiSymmetricAlgorithm.cs
- xdrvalidator.cs
- TimeoutValidationAttribute.cs
- Hashtable.cs
- RoleServiceManager.cs
- UIElement3DAutomationPeer.cs
- Crypto.cs
- ArrangedElementCollection.cs
- UnmanagedHandle.cs
- RowsCopiedEventArgs.cs
- KnownBoxes.cs
- FilterElement.cs
- Cursor.cs
- Emitter.cs
- DurableServiceAttribute.cs
- XPathNodeInfoAtom.cs
- XmlValidatingReader.cs
- XmlEnumAttribute.cs
- DataGridViewTextBoxColumn.cs
- PatternMatcher.cs
- PTConverter.cs
- ChangeDirector.cs
- XmlWellformedWriterHelpers.cs
- MouseWheelEventArgs.cs
- QueueProcessor.cs
- BaseTreeIterator.cs
- GeometryCollection.cs
- NoResizeSelectionBorderGlyph.cs
- BitmapEffect.cs
- LayoutTable.cs
- LinearGradientBrush.cs
- SafeArrayTypeMismatchException.cs
- BitmapEffectDrawingContextState.cs
- IISUnsafeMethods.cs
- XPathAxisIterator.cs
- CodeTypeParameter.cs
- Paragraph.cs
- SourceLineInfo.cs
- TextEditorCharacters.cs
- ExpandSegmentCollection.cs
- RepeatInfo.cs