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
- MediaPlayer.cs
- SequenceRangeCollection.cs
- DataObjectAttribute.cs
- InfoCardSymmetricCrypto.cs
- Visual3DCollection.cs
- ExceptionValidationRule.cs
- SequenceDesigner.cs
- WebPartsSection.cs
- SystemMulticastIPAddressInformation.cs
- RegisteredHiddenField.cs
- FileLoadException.cs
- ModelItemImpl.cs
- UniqueIdentifierService.cs
- OutputCacheProfileCollection.cs
- printdlgexmarshaler.cs
- DrawToolTipEventArgs.cs
- TreeView.cs
- StretchValidation.cs
- HintTextConverter.cs
- XmlComplianceUtil.cs
- BindingSourceDesigner.cs
- Blend.cs
- ToolStripOverflowButton.cs
- Hash.cs
- RectAnimationBase.cs
- XmlStreamNodeWriter.cs
- SetterTriggerConditionValueConverter.cs
- ControlCachePolicy.cs
- objectresult_tresulttype.cs
- CodeValidator.cs
- MarkerProperties.cs
- ElementsClipboardData.cs
- SafeNativeMethods.cs
- ZeroOpNode.cs
- ScrollableControlDesigner.cs
- DataGridCaption.cs
- LogEntryDeserializer.cs
- MergePropertyDescriptor.cs
- HeaderCollection.cs
- URL.cs
- SafeLibraryHandle.cs
- safelinkcollection.cs
- ScrollBarRenderer.cs
- ObjectSpanRewriter.cs
- MediaScriptCommandRoutedEventArgs.cs
- WebServiceResponseDesigner.cs
- EntitySqlQueryState.cs
- XmlBufferReader.cs
- ProgressBarRenderer.cs
- MetadataCollection.cs
- OutputCacheEntry.cs
- NetDataContractSerializer.cs
- CacheChildrenQuery.cs
- XmlChoiceIdentifierAttribute.cs
- Path.cs
- ObjectDataSourceView.cs
- WorkflowFormatterBehavior.cs
- Int64Storage.cs
- IChannel.cs
- QilTernary.cs
- TemplateParser.cs
- TextSearch.cs
- followingsibling.cs
- TextTrailingCharacterEllipsis.cs
- ZeroOpNode.cs
- AutomationPropertyInfo.cs
- EntityCollection.cs
- SHA1.cs
- OleDbParameterCollection.cs
- Size3DConverter.cs
- OverflowException.cs
- Rotation3D.cs
- RtfNavigator.cs
- DateTimePicker.cs
- EDesignUtil.cs
- StateBag.cs
- DistinctQueryOperator.cs
- DataStorage.cs
- ConstraintCollection.cs
- cache.cs
- GPPOINTF.cs
- HtmlTableCell.cs
- SqlCacheDependency.cs
- EndPoint.cs
- InstalledFontCollection.cs
- ScriptResourceAttribute.cs
- CompositeCollectionView.cs
- CodeChecksumPragma.cs
- LocalizationParserHooks.cs
- sqlpipe.cs
- CellLabel.cs
- SourceFileBuildProvider.cs
- StateWorkerRequest.cs
- BitmapEffectDrawingContent.cs
- CodeIndexerExpression.cs
- HMACRIPEMD160.cs
- Mouse.cs
- DoubleConverter.cs
- ReferencedType.cs
- SQLRoleProvider.cs