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
- DataGridViewHitTestInfo.cs
- CacheEntry.cs
- MenuCommand.cs
- AutomationProperty.cs
- LayoutManager.cs
- Monitor.cs
- WebPartHelpVerb.cs
- WSHttpSecurityElement.cs
- RectangleGeometry.cs
- WebPartManagerInternals.cs
- GatewayDefinition.cs
- DocumentApplicationJournalEntryEventArgs.cs
- DetailsViewUpdateEventArgs.cs
- MetadataPropertyAttribute.cs
- C14NUtil.cs
- DesignerTextBoxAdapter.cs
- TextMetrics.cs
- WrappedIUnknown.cs
- SwitchElementsCollection.cs
- TerminateWorkflow.cs
- _NetworkingPerfCounters.cs
- DrawingImage.cs
- ResourceExpression.cs
- SortFieldComparer.cs
- MenuScrollingVisibilityConverter.cs
- HandlerWithFactory.cs
- AvtEvent.cs
- Privilege.cs
- ZipIORawDataFileBlock.cs
- ListenerHandler.cs
- SiteMapDataSource.cs
- NoPersistHandle.cs
- ClassicBorderDecorator.cs
- DiagnosticStrings.cs
- ConfigurationManagerInternal.cs
- WpfXamlType.cs
- UnaryQueryOperator.cs
- SortDescription.cs
- WebPartActionVerb.cs
- TimelineCollection.cs
- StaticExtension.cs
- GroupDescription.cs
- InvalidComObjectException.cs
- CalendarAutomationPeer.cs
- AnonymousIdentificationModule.cs
- TemplateApplicationHelper.cs
- PathTooLongException.cs
- XmlSerializerFactory.cs
- PageParserFilter.cs
- UpdateDelegates.Generated.cs
- RotateTransform.cs
- LookupNode.cs
- SimplePropertyEntry.cs
- StringArrayConverter.cs
- GenericWebPart.cs
- SafeEventHandle.cs
- WindowsPrincipal.cs
- parserscommon.cs
- CharEnumerator.cs
- SemanticAnalyzer.cs
- HtmlWindow.cs
- BooleanStorage.cs
- unsafenativemethodsother.cs
- AssociationTypeEmitter.cs
- RestHandlerFactory.cs
- TraceInternal.cs
- Brushes.cs
- SmtpFailedRecipientException.cs
- localization.cs
- DynamicDataRouteHandler.cs
- OSEnvironmentHelper.cs
- HexParser.cs
- FunctionNode.cs
- ValidatingReaderNodeData.cs
- PropertyAccessVisitor.cs
- X509UI.cs
- HandleCollector.cs
- SettingsSavedEventArgs.cs
- VSWCFServiceContractGenerator.cs
- OutputCacheProfileCollection.cs
- CodeTypeConstructor.cs
- SignedInfo.cs
- CodeLabeledStatement.cs
- CountAggregationOperator.cs
- AnnotationHighlightLayer.cs
- IndexedString.cs
- UmAlQuraCalendar.cs
- Token.cs
- PriorityBinding.cs
- Group.cs
- SplitterEvent.cs
- SplineKeyFrames.cs
- SettingsSection.cs
- ImageUrlEditor.cs
- LocalIdKeyIdentifierClause.cs
- HtmlForm.cs
- DefaultHttpHandler.cs
- ExcludeFromCodeCoverageAttribute.cs
- cryptoapiTransform.cs
- AccessDataSourceView.cs