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
- BufferedWebEventProvider.cs
- CompoundFileStreamReference.cs
- HScrollProperties.cs
- HebrewCalendar.cs
- MetadataItem.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- Repeater.cs
- MonthCalendarDesigner.cs
- FilterableAttribute.cs
- ExecutedRoutedEventArgs.cs
- CssStyleCollection.cs
- DataTable.cs
- SourceFilter.cs
- RoutedEventConverter.cs
- TimeoutConverter.cs
- XmlSchemaImport.cs
- VisualBasicSettings.cs
- ClearTypeHintValidation.cs
- FixedSOMPageElement.cs
- RtType.cs
- SecurityException.cs
- Message.cs
- ISAPIApplicationHost.cs
- DataGridViewAdvancedBorderStyle.cs
- InternalResources.cs
- RMEnrollmentPage1.cs
- ADMembershipProvider.cs
- WebPartConnectVerb.cs
- DataGridState.cs
- Fx.cs
- HierarchicalDataBoundControlAdapter.cs
- ClientBuildManager.cs
- CompositeFontFamily.cs
- VectorCollection.cs
- ImageFormat.cs
- MailAddressCollection.cs
- RichTextBox.cs
- BlurEffect.cs
- SrgsGrammar.cs
- PackUriHelper.cs
- MSAAEventDispatcher.cs
- SqlDataSourceEnumerator.cs
- Rotation3D.cs
- HttpAsyncResult.cs
- SqlStatistics.cs
- CachedCompositeFamily.cs
- ResourcePart.cs
- ConnectionInterfaceCollection.cs
- DispatcherHooks.cs
- DetailsViewDeletedEventArgs.cs
- SelfIssuedAuthRSACryptoProvider.cs
- TreeView.cs
- XmlSerializerVersionAttribute.cs
- ValidationEventArgs.cs
- HtmlUtf8RawTextWriter.cs
- MetaTable.cs
- InternalControlCollection.cs
- DbMetaDataFactory.cs
- WebResourceAttribute.cs
- GetUserPreferenceRequest.cs
- EncoderParameters.cs
- RoutedEventHandlerInfo.cs
- UITypeEditor.cs
- HelpInfo.cs
- SkinIDTypeConverter.cs
- StringResourceManager.cs
- UserMapPath.cs
- DirectoryRootQuery.cs
- XamlWriter.cs
- StringArrayConverter.cs
- ListenerElementsCollection.cs
- RC2CryptoServiceProvider.cs
- CryptoApi.cs
- SecuritySessionSecurityTokenProvider.cs
- MetadataProperty.cs
- ViewStateModeByIdAttribute.cs
- CodeNamespaceImportCollection.cs
- CustomTypeDescriptor.cs
- GridViewEditEventArgs.cs
- UITypeEditor.cs
- BufferBuilder.cs
- PartialCachingControl.cs
- ObjectPersistData.cs
- TreeNode.cs
- AsyncOperationContext.cs
- path.cs
- RotateTransform.cs
- FixedLineResult.cs
- TickBar.cs
- WindowsHyperlink.cs
- CompositeCollection.cs
- SessionConnectionReader.cs
- SecurityAttributeGenerationHelper.cs
- RangeValidator.cs
- ServiceReference.cs
- CompilationUtil.cs
- Set.cs
- RegistryPermission.cs
- Size3DValueSerializer.cs
- XPathDocumentIterator.cs