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
- DataBindingCollectionEditor.cs
- XmlSchemaAttribute.cs
- EmbeddedMailObjectsCollection.cs
- ImageSource.cs
- ImageMapEventArgs.cs
- DtdParser.cs
- StylusSystemGestureEventArgs.cs
- TPLETWProvider.cs
- SelectionPattern.cs
- ZipFileInfoCollection.cs
- SequentialUshortCollection.cs
- Matrix3DStack.cs
- HwndHostAutomationPeer.cs
- ColumnResizeAdorner.cs
- Style.cs
- MetadataAssemblyHelper.cs
- SoundPlayerAction.cs
- Attributes.cs
- RsaSecurityToken.cs
- SiblingIterators.cs
- Figure.cs
- Serializer.cs
- SqlMultiplexer.cs
- AssemblyInfo.cs
- ResourceDefaultValueAttribute.cs
- ObjectContext.cs
- LicFileLicenseProvider.cs
- UpDownBase.cs
- ActiveXHost.cs
- XmlnsCompatibleWithAttribute.cs
- SemanticResolver.cs
- CodeArgumentReferenceExpression.cs
- EventRecordWrittenEventArgs.cs
- MimeParameterWriter.cs
- TreeWalker.cs
- ValueTypePropertyReference.cs
- AxisAngleRotation3D.cs
- _NestedMultipleAsyncResult.cs
- SequentialWorkflowHeaderFooter.cs
- TableLayout.cs
- MonthChangedEventArgs.cs
- DataKeyArray.cs
- DataGridViewCellStyleConverter.cs
- Section.cs
- AxisAngleRotation3D.cs
- CryptoApi.cs
- BinaryMethodMessage.cs
- HyperLink.cs
- ColorMap.cs
- ArraySegment.cs
- BitmapMetadataBlob.cs
- ContactManager.cs
- HttpResponseHeader.cs
- COAUTHINFO.cs
- ExeContext.cs
- DbConnectionPoolCounters.cs
- SystemInfo.cs
- CriticalFinalizerObject.cs
- CommunicationObjectFaultedException.cs
- WindowsStartMenu.cs
- FontStyleConverter.cs
- ResXBuildProvider.cs
- IApplicationTrustManager.cs
- DataGridViewMethods.cs
- CommonServiceBehaviorElement.cs
- SourceLineInfo.cs
- Frame.cs
- GPRECT.cs
- FusionWrap.cs
- DocumentGridPage.cs
- ColumnMapProcessor.cs
- OdbcConnectionHandle.cs
- BoundsDrawingContextWalker.cs
- XmlDownloadManager.cs
- CommandID.cs
- UpdatePanelTriggerCollection.cs
- SeparatorAutomationPeer.cs
- Polygon.cs
- RequestStatusBarUpdateEventArgs.cs
- BamlLocalizableResourceKey.cs
- SQLDecimal.cs
- ToolStripSeparatorRenderEventArgs.cs
- LowerCaseStringConverter.cs
- IERequestCache.cs
- Point3DCollectionValueSerializer.cs
- NullRuntimeConfig.cs
- SessionStateUtil.cs
- MDIControlStrip.cs
- ReservationCollection.cs
- RenderCapability.cs
- DbDataSourceEnumerator.cs
- DocumentPageView.cs
- CodeIndexerExpression.cs
- SerializerWriterEventHandlers.cs
- CodeStatement.cs
- ValidationEventArgs.cs
- SoapReflector.cs
- RegularExpressionValidator.cs
- DrawingContextWalker.cs
- ExpressionBinding.cs