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
- DataServiceRequestException.cs
- CalendarTable.cs
- MenuItemBinding.cs
- HelpInfo.cs
- FileSystemInfo.cs
- DSASignatureFormatter.cs
- DependencyPropertyKind.cs
- _TransmitFileOverlappedAsyncResult.cs
- DataGridTextColumn.cs
- DefaultValueAttribute.cs
- SaveFileDialog.cs
- DiscoveryDocumentSearchPattern.cs
- SQLResource.cs
- HostingEnvironmentWrapper.cs
- ZipIORawDataFileBlock.cs
- FormViewPagerRow.cs
- ContractComponent.cs
- SqlConnection.cs
- TraceUtils.cs
- MimeParameter.cs
- DataList.cs
- SerialPinChanges.cs
- DES.cs
- LinkArea.cs
- NativeRecognizer.cs
- DefaultValueAttribute.cs
- EdmTypeAttribute.cs
- OutOfMemoryException.cs
- TraceUtils.cs
- TextBoxBase.cs
- EntityReference.cs
- XmlQualifiedName.cs
- ObjectRef.cs
- EmbeddedMailObjectsCollection.cs
- ValidatingReaderNodeData.cs
- BitmapEffectGroup.cs
- Solver.cs
- LoginView.cs
- InstanceKeyNotReadyException.cs
- HtmlControlDesigner.cs
- KeyEvent.cs
- WebResourceUtil.cs
- XmlStreamStore.cs
- graph.cs
- MediaContext.cs
- Avt.cs
- XhtmlTextWriter.cs
- Mouse.cs
- RuntimeEnvironment.cs
- SortFieldComparer.cs
- CharacterString.cs
- CryptoProvider.cs
- SymmetricKey.cs
- WindowsProgressbar.cs
- PartialTrustVisibleAssemblyCollection.cs
- ContainerControl.cs
- GridViewEditEventArgs.cs
- DataSourceCacheDurationConverter.cs
- MethodSignatureGenerator.cs
- Script.cs
- LassoHelper.cs
- ConfigurationLocation.cs
- TargetException.cs
- ZipIOLocalFileBlock.cs
- XmlDomTextWriter.cs
- ObservableCollection.cs
- TTSEvent.cs
- Converter.cs
- HttpHandlerActionCollection.cs
- EmissiveMaterial.cs
- XmlSchema.cs
- ModelUIElement3D.cs
- HttpCapabilitiesSectionHandler.cs
- SessionStateItemCollection.cs
- HtmlImage.cs
- EndpointInfoCollection.cs
- CodeDirectoryCompiler.cs
- RangeBaseAutomationPeer.cs
- ReturnEventArgs.cs
- SiteMapProvider.cs
- SourceFileBuildProvider.cs
- TransformerTypeCollection.cs
- RowToFieldTransformer.cs
- MatrixTransform3D.cs
- AddIn.cs
- PagerStyle.cs
- PrePrepareMethodAttribute.cs
- XamlTypeMapper.cs
- RootBrowserWindowProxy.cs
- SchemaCompiler.cs
- DecimalFormatter.cs
- ArrayHelper.cs
- SerializerWriterEventHandlers.cs
- GrammarBuilderWildcard.cs
- XomlCompiler.cs
- PointCollectionValueSerializer.cs
- TextHidden.cs
- InvalidateEvent.cs
- XmlMembersMapping.cs
- ConstraintConverter.cs