Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / 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. //------------------------------------------------------------------------------ //// 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
- LockCookie.cs
- _TLSstream.cs
- ConcurrentDictionary.cs
- PageFunction.cs
- ClientData.cs
- ResourceContainer.cs
- CompilationLock.cs
- EncryptedType.cs
- LogEntrySerializationException.cs
- ScrollChrome.cs
- SpellerInterop.cs
- LocalizabilityAttribute.cs
- WorkflowMarkupSerializationProvider.cs
- SchemaImporterExtensionsSection.cs
- SessionIDManager.cs
- WmlControlAdapter.cs
- HWStack.cs
- SourceFileInfo.cs
- SplitterEvent.cs
- sortedlist.cs
- XPathQilFactory.cs
- Model3D.cs
- _KerberosClient.cs
- coordinator.cs
- StringFunctions.cs
- Asn1IntegerConverter.cs
- TransformerInfoCollection.cs
- XmlRootAttribute.cs
- DiscoveryUtility.cs
- HttpRuntimeSection.cs
- SqlMetaData.cs
- EventManager.cs
- EndpointDiscoveryMetadataCD1.cs
- DocumentOrderQuery.cs
- CommandManager.cs
- QuerySelectOp.cs
- Compiler.cs
- cache.cs
- HMACSHA384.cs
- CompleteWizardStep.cs
- GridPatternIdentifiers.cs
- VariantWrapper.cs
- DelegateSerializationHolder.cs
- CompositeScriptReferenceEventArgs.cs
- CustomError.cs
- ReflectionPermission.cs
- FixedFlowMap.cs
- TabletDeviceInfo.cs
- ChannelFactory.cs
- ConnectionStringsExpressionBuilder.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- HiddenField.cs
- InvalidateEvent.cs
- DataGridRelationshipRow.cs
- updateconfighost.cs
- PropertyChangedEventArgs.cs
- CredentialCache.cs
- InputScopeAttribute.cs
- ThrowHelper.cs
- DatatypeImplementation.cs
- CodeDelegateInvokeExpression.cs
- PtsContext.cs
- KnownBoxes.cs
- ActivityContext.cs
- IPPacketInformation.cs
- ClosureBinding.cs
- FileSystemInfo.cs
- BinaryConverter.cs
- Geometry.cs
- PowerStatus.cs
- DataGridBoolColumn.cs
- MSAAEventDispatcher.cs
- OdbcDataReader.cs
- OpCodes.cs
- BasicHttpSecurityElement.cs
- FixedTextPointer.cs
- ImageIndexConverter.cs
- DelimitedListTraceListener.cs
- ClientProxyGenerator.cs
- BaseTemplateBuildProvider.cs
- Adorner.cs
- Matrix3DStack.cs
- DataGrid.cs
- ImageSource.cs
- TemplatedAdorner.cs
- SharedPersonalizationStateInfo.cs
- PageStatePersister.cs
- HotSpotCollectionEditor.cs
- XmlSerializerAssemblyAttribute.cs
- ResourceDictionaryCollection.cs
- ToolStripRendererSwitcher.cs
- CoreSwitches.cs
- DataGridPageChangedEventArgs.cs
- GroupPartitionExpr.cs
- ItemsPanelTemplate.cs
- PeerDuplexChannelListener.cs
- ComplexBindingPropertiesAttribute.cs
- BitmapEffect.cs
- DataGridViewRowCollection.cs
- DynamicRendererThreadManager.cs