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
- DeclarationUpdate.cs
- TypeConstant.cs
- PersonalizationProviderCollection.cs
- DataControlReference.cs
- XmlWriterDelegator.cs
- DSASignatureFormatter.cs
- BinHexDecoder.cs
- PositiveTimeSpanValidator.cs
- ServicePoint.cs
- MultiSelector.cs
- ProcessProtocolHandler.cs
- GenericParameterDataContract.cs
- PreparingEnlistment.cs
- CodeDefaultValueExpression.cs
- RadioButtonList.cs
- SHA256Cng.cs
- Activity.cs
- VectorAnimationUsingKeyFrames.cs
- WebControlAdapter.cs
- AssociationType.cs
- HtmlImage.cs
- CodeObject.cs
- HelpProvider.cs
- XmlCustomFormatter.cs
- PrivateFontCollection.cs
- _ChunkParse.cs
- InkCanvasInnerCanvas.cs
- MappingException.cs
- AssemblyBuilder.cs
- _NetworkingPerfCounters.cs
- Parameter.cs
- BufferBuilder.cs
- Thumb.cs
- CursorConverter.cs
- XmlDownloadManager.cs
- DataControlField.cs
- WindowsTitleBar.cs
- WebPartEditorOkVerb.cs
- Vector3DAnimationBase.cs
- HttpPostedFileBase.cs
- ExpandedProjectionNode.cs
- XmlSchemaDatatype.cs
- WebPermission.cs
- Merger.cs
- CursorInteropHelper.cs
- ControlPaint.cs
- KeyValueSerializer.cs
- DoubleKeyFrameCollection.cs
- KnownBoxes.cs
- AdCreatedEventArgs.cs
- PersonalizationProviderCollection.cs
- InstanceKeyView.cs
- UnicodeEncoding.cs
- PropertyTab.cs
- CreateUserWizardStep.cs
- BeginGetFileNameFromUserRequest.cs
- TimeSpanValidator.cs
- SplashScreenNativeMethods.cs
- AdornerHitTestResult.cs
- GraphicsContext.cs
- SchemaTypeEmitter.cs
- StorageTypeMapping.cs
- PaintValueEventArgs.cs
- HtmlButton.cs
- NumericUpDown.cs
- CompilerGlobalScopeAttribute.cs
- ZipIOLocalFileBlock.cs
- ErrorEventArgs.cs
- XMLDiffLoader.cs
- DeviceContext.cs
- MetadataArtifactLoaderCompositeResource.cs
- FrugalMap.cs
- ParagraphVisual.cs
- CollectionContainer.cs
- ChannelManager.cs
- PolyLineSegment.cs
- TextBox.cs
- EntityKeyElement.cs
- TypeSystem.cs
- TextPointerBase.cs
- TemplateControlCodeDomTreeGenerator.cs
- ConfigurationElementCollection.cs
- SimpleRecyclingCache.cs
- NullableDecimalMinMaxAggregationOperator.cs
- SettingsAttributes.cs
- CreateDataSourceDialog.cs
- MediaContextNotificationWindow.cs
- HttpListenerContext.cs
- SafeBitVector32.cs
- ToolStripSplitStackLayout.cs
- CaseExpr.cs
- OutKeywords.cs
- DoubleAnimationUsingKeyFrames.cs
- Transform.cs
- HttpCacheVary.cs
- CoTaskMemHandle.cs
- XmlAnyElementAttributes.cs
- FileInfo.cs
- SequentialOutput.cs
- DesignerDataParameter.cs