Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- HtmlButton.cs
- _HeaderInfoTable.cs
- RadioButtonRenderer.cs
- ChannelSinkStacks.cs
- StandardMenuStripVerb.cs
- RuleSettingsCollection.cs
- Misc.cs
- IgnoreFileBuildProvider.cs
- WhileDesigner.xaml.cs
- DataGridViewAccessibleObject.cs
- EventPrivateKey.cs
- ImageDrawing.cs
- Errors.cs
- StdRegProviderWrapper.cs
- ConfigXmlAttribute.cs
- HttpCacheParams.cs
- SizeAnimation.cs
- ApplicationFileCodeDomTreeGenerator.cs
- Console.cs
- CategoryGridEntry.cs
- DbUpdateCommandTree.cs
- UnsafeNativeMethods.cs
- DbConnectionFactory.cs
- AttachedAnnotation.cs
- HashStream.cs
- Bits.cs
- XmlDeclaration.cs
- RefExpr.cs
- CalendarButton.cs
- FixedSOMLineCollection.cs
- SqlLiftIndependentRowExpressions.cs
- WorkflowRuntimeElement.cs
- ScriptControlManager.cs
- AssemblyCache.cs
- PersonalizationStateInfo.cs
- _NetRes.cs
- ToolboxItemCollection.cs
- Panel.cs
- DtdParser.cs
- ReferentialConstraint.cs
- ScriptResourceAttribute.cs
- EntityContainerAssociationSet.cs
- Site.cs
- ScriptHandlerFactory.cs
- ImmutableClientRuntime.cs
- AuthenticationConfig.cs
- PropertyEmitterBase.cs
- DataKey.cs
- PngBitmapDecoder.cs
- ObjectParameter.cs
- GeometryCombineModeValidation.cs
- IDispatchConstantAttribute.cs
- StorageEntitySetMapping.cs
- SymbolMethod.cs
- AssemblyCollection.cs
- JavaScriptString.cs
- WebServiceEnumData.cs
- PhysicalAddress.cs
- Int64AnimationUsingKeyFrames.cs
- TextWriter.cs
- SystemGatewayIPAddressInformation.cs
- LinearGradientBrush.cs
- LineMetrics.cs
- NumericUpDownAccelerationCollection.cs
- HashJoinQueryOperatorEnumerator.cs
- _ChunkParse.cs
- RouteTable.cs
- SimpleType.cs
- State.cs
- PointValueSerializer.cs
- DocumentApplicationJournalEntry.cs
- SemanticResultValue.cs
- RadioButtonAutomationPeer.cs
- WorkflowTransactionService.cs
- CustomCredentialPolicy.cs
- TextHidden.cs
- EntryWrittenEventArgs.cs
- Compiler.cs
- PersonalizationStateInfo.cs
- WorkflowService.cs
- CryptoApi.cs
- ExpressionLexer.cs
- Pair.cs
- Point4DConverter.cs
- DriveInfo.cs
- MetafileHeaderEmf.cs
- Style.cs
- Control.cs
- SafeRightsManagementQueryHandle.cs
- StandardToolWindows.cs
- HttpCacheVaryByContentEncodings.cs
- FocusTracker.cs
- StatusBarDrawItemEvent.cs
- XamlVector3DCollectionSerializer.cs
- StringStorage.cs
- WebPartVerb.cs
- ToolStripMenuItemDesigner.cs
- ReadOnlyKeyedCollection.cs
- OperatingSystem.cs
- RuntimeCompatibilityAttribute.cs