Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //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. // Copyright (c) Microsoft Corporation. All rights reserved.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
- Oid.cs
- XsltOutput.cs
- CompilationUtil.cs
- BitmapCodecInfo.cs
- ScrollChangedEventArgs.cs
- ApplicationProxyInternal.cs
- XmlSubtreeReader.cs
- SignatureDescription.cs
- EditorZone.cs
- Attributes.cs
- HtmlTableRowCollection.cs
- IdentifierService.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- FontFamily.cs
- ProtocolReflector.cs
- TreeView.cs
- TouchFrameEventArgs.cs
- ConfigXmlSignificantWhitespace.cs
- SectionInformation.cs
- XmlSchemaAnnotation.cs
- IBuiltInEvidence.cs
- ClientFormsIdentity.cs
- XmlSchemaObjectCollection.cs
- PresentationTraceSources.cs
- TypeFieldSchema.cs
- CharStorage.cs
- SystemTcpConnection.cs
- ZipIOExtraField.cs
- FontFamily.cs
- RelationshipEnd.cs
- RangeContentEnumerator.cs
- control.ime.cs
- ProtocolReflector.cs
- PermissionToken.cs
- AbsoluteQuery.cs
- TextBreakpoint.cs
- EntityWithChangeTrackerStrategy.cs
- IChannel.cs
- AcceptorSessionSymmetricMessageSecurityProtocol.cs
- NullableLongMinMaxAggregationOperator.cs
- CodeStatement.cs
- ObjectListShowCommandsEventArgs.cs
- MailDefinition.cs
- CodeSnippetStatement.cs
- PropertyNames.cs
- ReliableDuplexSessionChannel.cs
- RemoteX509Token.cs
- RepeaterCommandEventArgs.cs
- RegexCode.cs
- AdPostCacheSubstitution.cs
- SafeCertificateContext.cs
- Canvas.cs
- LinkedResourceCollection.cs
- ItemCheckEvent.cs
- WhitespaceRule.cs
- TextFormatterContext.cs
- DispatcherExceptionFilterEventArgs.cs
- CodeSnippetTypeMember.cs
- CodeTypeConstructor.cs
- dbdatarecord.cs
- WebServiceEnumData.cs
- DataGridViewBand.cs
- SynchronizedPool.cs
- ComplexTypeEmitter.cs
- SatelliteContractVersionAttribute.cs
- FilterInvalidBodyAccessException.cs
- SmtpReplyReaderFactory.cs
- RetrieveVirtualItemEventArgs.cs
- ProtocolInformationReader.cs
- ServerIdentity.cs
- ObjectCloneHelper.cs
- _Connection.cs
- GeneratedCodeAttribute.cs
- UnknownBitmapDecoder.cs
- SynchronizedReadOnlyCollection.cs
- TableItemPatternIdentifiers.cs
- VariableQuery.cs
- Unit.cs
- IxmlLineInfo.cs
- CodeBinaryOperatorExpression.cs
- StringFormat.cs
- StringUtil.cs
- XmlAttributeProperties.cs
- MetadataReference.cs
- TypeSystemHelpers.cs
- ListBox.cs
- BindingList.cs
- HtmlInputCheckBox.cs
- CodeGen.cs
- DeferredBinaryDeserializerExtension.cs
- LocalValueEnumerator.cs
- RightsManagementInformation.cs
- DataGridRowAutomationPeer.cs
- CodeRegionDirective.cs
- ParseNumbers.cs
- Compiler.cs
- ProxyHelper.cs
- ConstructorExpr.cs
- FormViewPageEventArgs.cs
- AttributeProviderAttribute.cs