Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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]; } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ThousandthOfEmRealPoints.cs
- PasswordRecoveryAutoFormat.cs
- BezierSegment.cs
- SoapSchemaMember.cs
- UIElementHelper.cs
- ImagingCache.cs
- XamlTypeWithExplicitNamespace.cs
- LongSumAggregationOperator.cs
- ProxyWebPartManager.cs
- WorkerRequest.cs
- FlagsAttribute.cs
- XPathArrayIterator.cs
- SimpleWorkerRequest.cs
- DiagnosticEventProvider.cs
- RequestQueryParser.cs
- KoreanLunisolarCalendar.cs
- DataGridViewColumnCollection.cs
- ColumnWidthChangedEvent.cs
- FrameAutomationPeer.cs
- WindowsListViewItemCheckBox.cs
- TextModifierScope.cs
- DateTimeStorage.cs
- Hash.cs
- XmlTextWriter.cs
- FrameworkElementFactoryMarkupObject.cs
- HttpRuntime.cs
- SafeHandle.cs
- MethodInfo.cs
- ObjectDataSourceDisposingEventArgs.cs
- CacheSection.cs
- DefaultPerformanceCounters.cs
- ChangesetResponse.cs
- ResourceDescriptionAttribute.cs
- TripleDESCryptoServiceProvider.cs
- BaseParagraph.cs
- ToolboxComponentsCreatedEventArgs.cs
- RecognizedAudio.cs
- RegistryExceptionHelper.cs
- DataSourceXmlSerializationAttribute.cs
- XmlDeclaration.cs
- PointHitTestParameters.cs
- TranslateTransform.cs
- InputElement.cs
- HtmlProps.cs
- GridViewPageEventArgs.cs
- Int16KeyFrameCollection.cs
- TcpTransportSecurity.cs
- SystemFonts.cs
- ZoneIdentityPermission.cs
- ContentFileHelper.cs
- ClientApiGenerator.cs
- DragDrop.cs
- ACE.cs
- StrongNamePublicKeyBlob.cs
- SEHException.cs
- MetadataWorkspace.cs
- MessageSmuggler.cs
- QueryOperationResponseOfT.cs
- EntityDataSourceValidationException.cs
- ResXResourceSet.cs
- HtmlToClrEventProxy.cs
- XmlSchemaAnnotation.cs
- CommandConverter.cs
- AvtEvent.cs
- ToolStripProgressBar.cs
- SchemaTableColumn.cs
- SqlDataSourceView.cs
- OleDbException.cs
- COM2AboutBoxPropertyDescriptor.cs
- AttributeCollection.cs
- DebugView.cs
- CategoryNameCollection.cs
- HMACMD5.cs
- CodePageEncoding.cs
- ServiceThrottle.cs
- WorkItem.cs
- NameSpaceEvent.cs
- ComplexPropertyEntry.cs
- DoubleAnimation.cs
- UITypeEditor.cs
- SqlDataSourceParameterParser.cs
- Label.cs
- CharacterShapingProperties.cs
- ResourcesBuildProvider.cs
- InfoCardCryptoHelper.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- ClaimTypes.cs
- BitmapMetadata.cs
- TraceLog.cs
- BindingObserver.cs
- SafeCryptHandles.cs
- StrokeCollection.cs
- SvcMapFileLoader.cs
- BinaryUtilClasses.cs
- DeleteStoreRequest.cs
- FrameworkContextData.cs
- TabPage.cs
- StringToken.cs
- WindowsSysHeader.cs
- ReachPageContentCollectionSerializerAsync.cs