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
- OdbcConnectionFactory.cs
- ErrorInfoXmlDocument.cs
- SystemIcmpV4Statistics.cs
- StringCollectionMarkupSerializer.cs
- InfoCardRequestException.cs
- WinEventWrap.cs
- BlurBitmapEffect.cs
- ColorKeyFrameCollection.cs
- Marshal.cs
- PartitionedStream.cs
- MethodBuilderInstantiation.cs
- EncoderNLS.cs
- SmtpFailedRecipientsException.cs
- Bits.cs
- ILGen.cs
- _NegoState.cs
- StorageTypeMapping.cs
- Executor.cs
- Oid.cs
- LiteralTextContainerControlBuilder.cs
- MatrixUtil.cs
- HtmlTextArea.cs
- ServiceDebugBehavior.cs
- CodeArrayCreateExpression.cs
- ZipIOLocalFileDataDescriptor.cs
- SinglePageViewer.cs
- RangeValuePatternIdentifiers.cs
- InfoCardProofToken.cs
- CodeCastExpression.cs
- NullReferenceException.cs
- WebReferencesBuildProvider.cs
- arc.cs
- XmlDictionaryString.cs
- DynamicPropertyHolder.cs
- HttpBufferlessInputStream.cs
- X509Certificate2.cs
- RadioButtonStandardAdapter.cs
- PropertyGridCommands.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- GridViewCellAutomationPeer.cs
- RuntimeUtils.cs
- ObjectPersistData.cs
- LoadWorkflowAsyncResult.cs
- SiteMapDataSource.cs
- HashHelper.cs
- OracleTimeSpan.cs
- ColorBuilder.cs
- ToggleProviderWrapper.cs
- MDIClient.cs
- ClientTargetCollection.cs
- Context.cs
- DetailsViewModeEventArgs.cs
- GenerateDerivedKeyRequest.cs
- HttpResponse.cs
- TypeToken.cs
- _SecureChannel.cs
- ContextStaticAttribute.cs
- SingletonInstanceContextProvider.cs
- MimeMultiPart.cs
- ClientSideProviderDescription.cs
- WebPartUserCapability.cs
- XmlSchemaType.cs
- DBSchemaRow.cs
- XpsFixedDocumentSequenceReaderWriter.cs
- BrowsableAttribute.cs
- StrongName.cs
- WsdlImporterElement.cs
- XmlSerializerObjectSerializer.cs
- Int32Animation.cs
- SocketInformation.cs
- SByteConverter.cs
- BoundsDrawingContextWalker.cs
- DataService.cs
- LogicalExpressionEditor.cs
- MatrixIndependentAnimationStorage.cs
- Not.cs
- InternalException.cs
- ReferenceSchema.cs
- RawMouseInputReport.cs
- SrgsText.cs
- TimeZone.cs
- ToolStripPanelSelectionGlyph.cs
- RelationshipNavigation.cs
- DetailsViewCommandEventArgs.cs
- VBIdentifierName.cs
- UpdateManifestForBrowserApplication.cs
- Image.cs
- CommonDialog.cs
- Matrix3D.cs
- SelectionEditingBehavior.cs
- URLAttribute.cs
- PkcsUtils.cs
- DiscoveryClientOutputChannel.cs
- NamespaceEmitter.cs
- ColumnClickEvent.cs
- ResourceProviderFactory.cs
- SQLResource.cs
- _RequestCacheProtocol.cs
- FontSource.cs
- DecimalFormatter.cs