Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- GridEntryCollection.cs
- DataGridViewColumnHeaderCell.cs
- FontCollection.cs
- OdbcError.cs
- SvcMapFile.cs
- ConfigXmlDocument.cs
- TransformationRules.cs
- TextEvent.cs
- HttpStreamMessageEncoderFactory.cs
- EditingMode.cs
- SyndicationElementExtensionCollection.cs
- ResourceIDHelper.cs
- OleDbRowUpdatingEvent.cs
- TraceInternal.cs
- ColorMap.cs
- VirtualPathUtility.cs
- ZipIOExtraFieldZip64Element.cs
- MarshalDirectiveException.cs
- PropertyGroupDescription.cs
- BackStopAuthenticationModule.cs
- DataGridCellsPanel.cs
- XmlBindingWorker.cs
- CommandHelper.cs
- ChildrenQuery.cs
- UserNameSecurityTokenAuthenticator.cs
- PerformanceCounterCategory.cs
- LazyInitializer.cs
- ContentElement.cs
- DataAdapter.cs
- GroupQuery.cs
- Keywords.cs
- EventHandlingScope.cs
- NotFiniteNumberException.cs
- IISMapPath.cs
- InputProcessorProfilesLoader.cs
- ConfigurationElementCollection.cs
- ToolStripItemEventArgs.cs
- CalendarDay.cs
- AutoFocusStyle.xaml.cs
- MessageHeaderDescriptionCollection.cs
- TraceHandlerErrorFormatter.cs
- AmbientLight.cs
- ParseNumbers.cs
- DiffuseMaterial.cs
- DbParameterCollection.cs
- Pair.cs
- Utils.cs
- MultiView.cs
- RSAPKCS1SignatureDeformatter.cs
- mediaeventshelper.cs
- ViewStateException.cs
- InputManager.cs
- VisualProxy.cs
- MessageQueuePermissionEntryCollection.cs
- XmlSchemaType.cs
- contentDescriptor.cs
- HelloMessageCD1.cs
- WebBrowsableAttribute.cs
- GridViewColumnHeaderAutomationPeer.cs
- SmiGettersStream.cs
- CompositionTarget.cs
- HtmlProps.cs
- NativeMethods.cs
- TransactedBatchingElement.cs
- SecurityContext.cs
- DbProviderConfigurationHandler.cs
- TargetControlTypeAttribute.cs
- Accessible.cs
- BinaryReader.cs
- DrawingGroupDrawingContext.cs
- SqlProvider.cs
- Cursor.cs
- SynchronizedInputAdaptor.cs
- EventManager.cs
- DataListCommandEventArgs.cs
- DbDataRecord.cs
- XmlSchemaSimpleContentRestriction.cs
- SchemaElementDecl.cs
- LightweightCodeGenerator.cs
- MetaChildrenColumn.cs
- LiteralControl.cs
- UnsafeNetInfoNativeMethods.cs
- XMLSchema.cs
- HttpWebResponse.cs
- Ray3DHitTestResult.cs
- UrlMappingCollection.cs
- StrongNamePublicKeyBlob.cs
- StrongNameIdentityPermission.cs
- MatrixAnimationBase.cs
- SqlServer2KCompatibilityAnnotation.cs
- ImpersonateTokenRef.cs
- RawMouseInputReport.cs
- ApplicationInterop.cs
- SystemWebSectionGroup.cs
- Stack.cs
- HTTPNotFoundHandler.cs
- WinHttpWebProxyFinder.cs
- BreakRecordTable.cs
- Attachment.cs
- RuleRef.cs