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
- HMACSHA256.cs
- ErrorTolerantObjectWriter.cs
- RegistryKey.cs
- ClientFormsAuthenticationCredentials.cs
- ComponentCollection.cs
- EpmCustomContentWriterNodeData.cs
- Quad.cs
- _HeaderInfoTable.cs
- SqlNotificationRequest.cs
- Intellisense.cs
- ManagementDateTime.cs
- SoapAttributes.cs
- DataServiceRequestException.cs
- DecimalAnimationBase.cs
- OleStrCAMarshaler.cs
- Document.cs
- SafeTimerHandle.cs
- TagElement.cs
- BitmapSizeOptions.cs
- ControlBindingsConverter.cs
- RoutingEndpointTrait.cs
- BoundColumn.cs
- AuthenticationConfig.cs
- RegexRunnerFactory.cs
- PageContentCollection.cs
- Geometry3D.cs
- DSGeneratorProblem.cs
- TileBrush.cs
- BitArray.cs
- odbcmetadatafactory.cs
- ListControl.cs
- Image.cs
- FacetValues.cs
- SingleKeyFrameCollection.cs
- OracleString.cs
- ApplicationFileParser.cs
- DataGridViewDataErrorEventArgs.cs
- MDIClient.cs
- HttpApplicationStateBase.cs
- ToRequest.cs
- XmlResolver.cs
- CacheOutputQuery.cs
- C14NUtil.cs
- CollectionChangedEventManager.cs
- ToolTipService.cs
- Rotation3DAnimation.cs
- PeerInvitationResponse.cs
- ProxyWebPartConnectionCollection.cs
- SeekableReadStream.cs
- FlowLayout.cs
- Point4D.cs
- HierarchicalDataSourceConverter.cs
- AccessDataSourceView.cs
- TransactionChannelFaultConverter.cs
- ObjectIDGenerator.cs
- MarshalDirectiveException.cs
- CommonDialog.cs
- VarRemapper.cs
- XmlnsCompatibleWithAttribute.cs
- Section.cs
- MulticastDelegate.cs
- XmlWrappingWriter.cs
- DataTableReaderListener.cs
- CommandHelpers.cs
- CaretElement.cs
- ReversePositionQuery.cs
- ResourceLoader.cs
- QilNode.cs
- HiddenFieldPageStatePersister.cs
- DataTemplateSelector.cs
- ExtendedPropertyDescriptor.cs
- ToolStripSplitButton.cs
- AttributeAction.cs
- QueryExpression.cs
- ScrollProviderWrapper.cs
- UnescapedXmlDiagnosticData.cs
- WorkflowInstanceQuery.cs
- AddingNewEventArgs.cs
- MenuItemCollection.cs
- DurableErrorHandler.cs
- PeerNodeTraceRecord.cs
- HttpListenerResponse.cs
- Geometry.cs
- RepeaterItemEventArgs.cs
- EncodingDataItem.cs
- TrackingMemoryStream.cs
- DataGridViewSelectedRowCollection.cs
- OutputCacheSettings.cs
- ReadOnlyDataSource.cs
- TimelineGroup.cs
- DetailsViewDeleteEventArgs.cs
- SortDescriptionCollection.cs
- MetadataPropertyvalue.cs
- TypefaceMap.cs
- ContentPropertyAttribute.cs
- ReflectionUtil.cs
- GridLength.cs
- PrivilegeNotHeldException.cs
- GCHandleCookieTable.cs
- UpWmlPageAdapter.cs