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
- IPEndPointCollection.cs
- ArrayTypeMismatchException.cs
- DataGridViewColumnCollectionEditor.cs
- CodeIdentifier.cs
- ExtenderHelpers.cs
- DynamicDocumentPaginator.cs
- OuterGlowBitmapEffect.cs
- SHA384Cng.cs
- DefaultMemberAttribute.cs
- SelectionWordBreaker.cs
- ValidationPropertyAttribute.cs
- MergeFilterQuery.cs
- DataServiceEntityAttribute.cs
- ValueSerializer.cs
- HashRepartitionStream.cs
- Connection.cs
- InvariantComparer.cs
- BuildManagerHost.cs
- CreatingCookieEventArgs.cs
- MustUnderstandSoapException.cs
- CommandField.cs
- AdRotator.cs
- ClaimTypes.cs
- CalendarTable.cs
- BindUriHelper.cs
- CompModSwitches.cs
- Pens.cs
- HtmlInputPassword.cs
- MenuBase.cs
- TrackingServices.cs
- ChildDocumentBlock.cs
- CurrencyWrapper.cs
- XmlDataLoader.cs
- EmbossBitmapEffect.cs
- StateWorkerRequest.cs
- HttpHandlerActionCollection.cs
- ResXBuildProvider.cs
- BitmapFrame.cs
- XPathMultyIterator.cs
- ParameterReplacerVisitor.cs
- ClientUrlResolverWrapper.cs
- PublisherMembershipCondition.cs
- ConfigurationSectionCollection.cs
- DrawingContextDrawingContextWalker.cs
- RemotingConfigParser.cs
- DocumentSequenceHighlightLayer.cs
- PeerTransportSecuritySettings.cs
- ScrollItemPatternIdentifiers.cs
- LowerCaseStringConverter.cs
- WebResponse.cs
- RoutedEventArgs.cs
- UnmanagedMemoryStream.cs
- StylusTip.cs
- ExclusiveCanonicalizationTransform.cs
- LockingPersistenceProvider.cs
- SecurityHelper.cs
- PlaceHolder.cs
- SubpageParagraph.cs
- CommonObjectSecurity.cs
- ParseHttpDate.cs
- UITypeEditor.cs
- ReadWriteSpinLock.cs
- WebExceptionStatus.cs
- SqlTransaction.cs
- DataServiceRequestException.cs
- DesignerTransactionCloseEvent.cs
- DoubleAnimationUsingKeyFrames.cs
- StyleXamlParser.cs
- ProjectionPruner.cs
- OleDbSchemaGuid.cs
- MessageProtectionOrder.cs
- XmlSchemaComplexContentRestriction.cs
- ShaderEffect.cs
- TableItemPattern.cs
- SortExpressionBuilder.cs
- BezierSegment.cs
- RadioButton.cs
- CookieProtection.cs
- OleDbMetaDataFactory.cs
- ImageButton.cs
- Literal.cs
- MailAddress.cs
- TableItemProviderWrapper.cs
- COM2Enum.cs
- GridViewCellAutomationPeer.cs
- XmlMemberMapping.cs
- Size3DConverter.cs
- ValidationError.cs
- HiddenFieldPageStatePersister.cs
- Formatter.cs
- CornerRadiusConverter.cs
- SrgsDocumentParser.cs
- ViewRendering.cs
- MissingManifestResourceException.cs
- UnionCodeGroup.cs
- UrlParameterWriter.cs
- SchemaNotation.cs
- InputManager.cs
- MatrixAnimationBase.cs
- SystemSounds.cs