Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- OutputCacheSettings.cs
- WindowsAltTab.cs
- GatewayDefinition.cs
- WebPartEditVerb.cs
- XmlExpressionDumper.cs
- ContextMenuStripGroup.cs
- ModelItemDictionary.cs
- EntityObject.cs
- TempFiles.cs
- WindowProviderWrapper.cs
- ComPlusThreadInitializer.cs
- SpeechAudioFormatInfo.cs
- RegexInterpreter.cs
- _OSSOCK.cs
- Transform.cs
- Fonts.cs
- ValidationRuleCollection.cs
- GrammarBuilderBase.cs
- XmlAnyElementAttributes.cs
- DataConnectionHelper.cs
- XPathBuilder.cs
- DbConnectionHelper.cs
- DataGrid.cs
- MinimizableAttributeTypeConverter.cs
- DataBindingExpressionBuilder.cs
- Brush.cs
- AnonymousIdentificationSection.cs
- Char.cs
- ReadOnlyAttribute.cs
- InfiniteIntConverter.cs
- MarkupExtensionReturnTypeAttribute.cs
- FrameworkRichTextComposition.cs
- HttpCapabilitiesSectionHandler.cs
- TimerElapsedEvenArgs.cs
- StringAnimationUsingKeyFrames.cs
- HyperLinkField.cs
- TextModifier.cs
- XmlILAnnotation.cs
- DrawingImage.cs
- GuidelineCollection.cs
- RemoteWebConfigurationHostStream.cs
- updateconfighost.cs
- PolicyManager.cs
- DataGridViewCellValueEventArgs.cs
- PseudoWebRequest.cs
- ProcessInputEventArgs.cs
- FileLogRecordHeader.cs
- RootNamespaceAttribute.cs
- TextServicesHost.cs
- DataGridViewBindingCompleteEventArgs.cs
- ColorConverter.cs
- BufferedGraphics.cs
- WindowsSecurityToken.cs
- CompiledIdentityConstraint.cs
- DbFunctionCommandTree.cs
- XmlAnyAttributeAttribute.cs
- ResourceManager.cs
- CodeCommentStatement.cs
- reliableinputsessionchannel.cs
- DataGridViewCellConverter.cs
- ActivityDesigner.cs
- StaticDataManager.cs
- WebPartPersonalization.cs
- ApplicationSettingsBase.cs
- SyndicationFeed.cs
- AspCompat.cs
- TextSegment.cs
- FontStretchConverter.cs
- ValidationException.cs
- OnOperation.cs
- Command.cs
- SqlTriggerContext.cs
- QueryableDataSource.cs
- DesignerActionHeaderItem.cs
- graph.cs
- OpCellTreeNode.cs
- GcSettings.cs
- EntityParameter.cs
- XXXOnTypeBuilderInstantiation.cs
- DataTrigger.cs
- ByteRangeDownloader.cs
- RoutingEndpointTrait.cs
- SourceFileBuildProvider.cs
- OuterGlowBitmapEffect.cs
- Pair.cs
- PositiveTimeSpanValidator.cs
- ObjectDataSourceFilteringEventArgs.cs
- RelatedCurrencyManager.cs
- XamlVector3DCollectionSerializer.cs
- SingleAnimationBase.cs
- ValueProviderWrapper.cs
- MenuItemBindingCollection.cs
- AmbientProperties.cs
- ActivityWithResult.cs
- AuthorizationRuleCollection.cs
- HttpProxyTransportBindingElement.cs
- XmlUrlEditor.cs
- LoadMessageLogger.cs
- ButtonBase.cs
- CacheRequest.cs