Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / UI / StateItem.cs / 1 / StateItem.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.Security.Permissions; /* * The StateItem class * by the StateBag class. * The StateItem has an object value, a dirty flag. */ ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class StateItem { private object value; private bool isDirty; /* * Constructs a StateItem with an initial value. */ internal StateItem(object initialValue) { value = initialValue; isDirty = false; } /* * Property to indicate StateItem has been modified. */ ///Represents an item that is saved in the ///class when view state /// information is persisted between Web requests. /// public bool IsDirty { get { return isDirty; } set { isDirty = value; } } /* * Property to access the StateItem value. */ ///Indicates whether the ///object has been modified. /// public object Value { get { return value; } set { this.value = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //Indicates the value of the item that is stored in the ////// object. // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.Security.Permissions; /* * The StateItem class * by the StateBag class. * The StateItem has an object value, a dirty flag. */ ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class StateItem { private object value; private bool isDirty; /* * Constructs a StateItem with an initial value. */ internal StateItem(object initialValue) { value = initialValue; isDirty = false; } /* * Property to indicate StateItem has been modified. */ ///Represents an item that is saved in the ///class when view state /// information is persisted between Web requests. /// public bool IsDirty { get { return isDirty; } set { isDirty = value; } } /* * Property to access the StateItem value. */ ///Indicates whether the ///object has been modified. /// public object Value { get { return value; } set { this.value = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Indicates the value of the item that is stored in the ////// object.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataGridCaption.cs
- TemplateControlCodeDomTreeGenerator.cs
- DesignerDataStoredProcedure.cs
- ValidationEventArgs.cs
- TextureBrush.cs
- TaskExceptionHolder.cs
- EpmSyndicationContentDeSerializer.cs
- _KerberosClient.cs
- Literal.cs
- BookmarkResumptionRecord.cs
- VSDExceptions.cs
- SingleConverter.cs
- MetadataCollection.cs
- HttpHeaderCollection.cs
- HttpChannelBindingToken.cs
- UnauthorizedAccessException.cs
- OrderedDictionaryStateHelper.cs
- TransactionChannelListener.cs
- DispatcherOperation.cs
- ConfigurationSection.cs
- DbConnectionClosed.cs
- TextEditorSelection.cs
- AttachedPropertiesService.cs
- BinaryMessageFormatter.cs
- DataServiceQueryException.cs
- TransportManager.cs
- XmlSchemaSimpleTypeList.cs
- ButtonField.cs
- NodeCounter.cs
- PropertyValidationContext.cs
- FormatterConverter.cs
- ComponentCollection.cs
- XmlChildNodes.cs
- ImageAttributes.cs
- RuleEngine.cs
- DataComponentGenerator.cs
- EventProxy.cs
- PageBuildProvider.cs
- SkewTransform.cs
- RSAOAEPKeyExchangeFormatter.cs
- NativeMethods.cs
- NavigateUrlConverter.cs
- InvokeProviderWrapper.cs
- IncrementalReadDecoders.cs
- WorkflowView.cs
- SmtpNetworkElement.cs
- OuterGlowBitmapEffect.cs
- NullRuntimeConfig.cs
- InstanceData.cs
- CombinedGeometry.cs
- parserscommon.cs
- MessageAction.cs
- IFlowDocumentViewer.cs
- PtsContext.cs
- ResourceManagerWrapper.cs
- BorderGapMaskConverter.cs
- odbcmetadatacollectionnames.cs
- GeneralTransform3DGroup.cs
- TrackingMemoryStreamFactory.cs
- unsafenativemethodstextservices.cs
- TemplateControl.cs
- VisualStyleElement.cs
- XmlSchemaInferenceException.cs
- SmiEventSink.cs
- MeshGeometry3D.cs
- Parameter.cs
- Floater.cs
- StickyNoteHelper.cs
- __FastResourceComparer.cs
- SessionPageStateSection.cs
- LinqExpressionNormalizer.cs
- BrowserCapabilitiesCompiler.cs
- WebDisplayNameAttribute.cs
- Walker.cs
- ContractValidationHelper.cs
- diagnosticsswitches.cs
- OrderedDictionaryStateHelper.cs
- AssemblyLoader.cs
- ManualResetEvent.cs
- TextElement.cs
- ColumnResult.cs
- PropertyCollection.cs
- DefaultBinder.cs
- CompositeCollection.cs
- AttributeUsageAttribute.cs
- SystemIcmpV6Statistics.cs
- IChannel.cs
- DataGridPreparingCellForEditEventArgs.cs
- DataGridViewTextBoxCell.cs
- TreeNodeConverter.cs
- VarInfo.cs
- XPathNavigator.cs
- FloaterBaseParaClient.cs
- OptimizedTemplateContentHelper.cs
- SqlGatherConsumedAliases.cs
- SubpageParagraph.cs
- FlowDocumentPage.cs
- UnitySerializationHolder.cs
- HttpModulesSection.cs
- ConfigurationUtility.cs