Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / ViewStateModeByIdAttribute.cs / 1305376 / 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; [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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WeakReferenceList.cs
- RightsManagementEncryptionTransform.cs
- MemoryStream.cs
- ScriptModule.cs
- COM2ColorConverter.cs
- BaseTemplateBuildProvider.cs
- SiteOfOriginContainer.cs
- NotifyCollectionChangedEventArgs.cs
- ObjectItemCachedAssemblyLoader.cs
- MsmqInputChannelListenerBase.cs
- GACIdentityPermission.cs
- MenuEventArgs.cs
- ExceptionUtil.cs
- BmpBitmapEncoder.cs
- BindingBase.cs
- DataGridViewCellStyleConverter.cs
- XmlnsDictionary.cs
- NavigationPropertyEmitter.cs
- DependencyPropertyChangedEventArgs.cs
- ReadOnlyMetadataCollection.cs
- EnumMemberAttribute.cs
- Accessible.cs
- shaperfactory.cs
- ActiveXHelper.cs
- LongSumAggregationOperator.cs
- XmlSchemaAnnotated.cs
- XMLSyntaxException.cs
- PolicyLevel.cs
- DateTimeSerializationSection.cs
- PeerOutputChannel.cs
- SuppressMessageAttribute.cs
- Application.cs
- ContractMapping.cs
- RectangleHotSpot.cs
- BindingExpressionUncommonField.cs
- SchemaUtility.cs
- UnSafeCharBuffer.cs
- DaylightTime.cs
- EpmContentSerializer.cs
- TcpConnectionPoolSettings.cs
- ReflectionUtil.cs
- _ConnectOverlappedAsyncResult.cs
- GroupItem.cs
- BitmapEffectGeneralTransform.cs
- SchemaObjectWriter.cs
- OdbcHandle.cs
- WindowsSolidBrush.cs
- XmlSubtreeReader.cs
- AccessDataSource.cs
- PageThemeParser.cs
- ImageFormat.cs
- UnsafeNativeMethods.cs
- FormsAuthenticationTicket.cs
- SemaphoreSecurity.cs
- AncestorChangedEventArgs.cs
- HTMLTagNameToTypeMapper.cs
- CodeNamespaceImport.cs
- HitTestDrawingContextWalker.cs
- BulletChrome.cs
- PrintPageEvent.cs
- FrameworkContentElement.cs
- AdapterSwitches.cs
- Empty.cs
- DistinctQueryOperator.cs
- StylusPointPropertyUnit.cs
- DependencyPropertyHelper.cs
- LabelAutomationPeer.cs
- OleDbCommand.cs
- _HelperAsyncResults.cs
- AutoGeneratedFieldProperties.cs
- AncestorChangedEventArgs.cs
- DelegatingConfigHost.cs
- ToolStripItem.cs
- VirtualDirectoryMappingCollection.cs
- UnionCodeGroup.cs
- BufferBuilder.cs
- BinaryNode.cs
- Win32PrintDialog.cs
- CursorEditor.cs
- XmlNotation.cs
- QuestionEventArgs.cs
- FilteredDataSetHelper.cs
- TextParagraphCache.cs
- DataGridViewToolTip.cs
- NamespaceQuery.cs
- WindowsListBox.cs
- Int16.cs
- TimeSpanStorage.cs
- VBIdentifierDesigner.xaml.cs
- TreeViewAutomationPeer.cs
- LinqDataSourceHelper.cs
- ping.cs
- XmlSchemaParticle.cs
- OleDbDataAdapter.cs
- RepeaterCommandEventArgs.cs
- AdRotator.cs
- RuntimeConfig.cs
- SqlError.cs
- Action.cs
- AutomationIdentifier.cs