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
- ToolStripControlHost.cs
- ComNativeDescriptor.cs
- PriorityRange.cs
- SvcMapFileSerializer.cs
- SerializationAttributes.cs
- Util.cs
- Graph.cs
- RegexCharClass.cs
- IndicShape.cs
- StreamUpgradeInitiator.cs
- CookieHandler.cs
- PolicyLevel.cs
- RouteItem.cs
- AutomationPatternInfo.cs
- UseManagedPresentationBindingElementImporter.cs
- ButtonChrome.cs
- CompilationUtil.cs
- QueryCreatedEventArgs.cs
- SafeFileMappingHandle.cs
- CngUIPolicy.cs
- SqlXml.cs
- BinaryNode.cs
- XNodeNavigator.cs
- DataGridColumnCollectionEditor.cs
- UInt64Converter.cs
- XmlDomTextWriter.cs
- OperationAbortedException.cs
- MinimizableAttributeTypeConverter.cs
- PrintEvent.cs
- BinaryUtilClasses.cs
- BaseAsyncResult.cs
- Vector.cs
- ObjectStateEntryDbDataRecord.cs
- WebPartsPersonalizationAuthorization.cs
- WebPartDisplayModeCancelEventArgs.cs
- ApplicationManager.cs
- DocumentGrid.cs
- SmiRecordBuffer.cs
- SponsorHelper.cs
- MethodMessage.cs
- AssociatedControlConverter.cs
- RelatedCurrencyManager.cs
- RefType.cs
- ParameterCollection.cs
- TextComposition.cs
- TiffBitmapDecoder.cs
- EventDescriptor.cs
- ColumnCollection.cs
- ComplexTypeEmitter.cs
- PromptBuilder.cs
- COM2PictureConverter.cs
- HostedHttpTransportManager.cs
- ResourceSet.cs
- TextReader.cs
- TemplateKey.cs
- QueryConverter.cs
- UriWriter.cs
- TextTreeDeleteContentUndoUnit.cs
- TPLETWProvider.cs
- DbProviderFactory.cs
- DockingAttribute.cs
- D3DImage.cs
- NestedContainer.cs
- DynamicResourceExtensionConverter.cs
- QilIterator.cs
- Rss20FeedFormatter.cs
- FileDialog_Vista.cs
- WindowManager.cs
- FunctionUpdateCommand.cs
- ServiceCredentialsSecurityTokenManager.cs
- FixedSOMGroup.cs
- StringBuilder.cs
- DbConnectionPoolCounters.cs
- ShapeTypeface.cs
- updatecommandorderer.cs
- Lock.cs
- Roles.cs
- MsmqAppDomainProtocolHandler.cs
- FactoryRecord.cs
- FigureParagraph.cs
- ProcessProtocolHandler.cs
- ToolStripDropDownClosedEventArgs.cs
- DataGridLinkButton.cs
- NumberFormatter.cs
- DataGridViewAddColumnDialog.cs
- ConstructorExpr.cs
- ConfigurationStrings.cs
- ThreadAttributes.cs
- BamlTreeUpdater.cs
- HttpSessionStateWrapper.cs
- bidPrivateBase.cs
- UndirectedGraph.cs
- SqlCaseSimplifier.cs
- ExpandSegment.cs
- ChangeDirector.cs
- EventSourceCreationData.cs
- SmiRecordBuffer.cs
- WebFormDesignerActionService.cs
- PasswordRecovery.cs
- RoutedCommand.cs