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
- VectorValueSerializer.cs
- codemethodreferenceexpression.cs
- DeploymentSection.cs
- SuppressMergeCheckAttribute.cs
- IntSecurity.cs
- QueryCacheEntry.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- COM2TypeInfoProcessor.cs
- LowerCaseStringConverter.cs
- XPathCompileException.cs
- ModuleBuilder.cs
- URL.cs
- ViewValidator.cs
- PointConverter.cs
- BindingExpression.cs
- Math.cs
- SmtpCommands.cs
- PresentationTraceSources.cs
- ObjectDisposedException.cs
- RotationValidation.cs
- TimeSpanValidator.cs
- Size3DConverter.cs
- Roles.cs
- IdentityManager.cs
- Root.cs
- IntegerValidator.cs
- ObjectDataSourceMethodEditor.cs
- SqlNodeTypeOperators.cs
- X509Chain.cs
- TextEndOfParagraph.cs
- FormView.cs
- MediaTimeline.cs
- TemplatedMailWebEventProvider.cs
- SelectionItemProviderWrapper.cs
- UserControlAutomationPeer.cs
- ReadOnlyDictionary.cs
- XmlValidatingReaderImpl.cs
- documentsequencetextpointer.cs
- ConfigXmlAttribute.cs
- FormViewActionList.cs
- QuaternionValueSerializer.cs
- PropertyMetadata.cs
- SecurityPermission.cs
- MarkupCompilePass1.cs
- DependencyPropertyChangedEventArgs.cs
- DataFormat.cs
- ServiceOperationParameter.cs
- BevelBitmapEffect.cs
- StatusStrip.cs
- TouchesOverProperty.cs
- ProtocolsConfiguration.cs
- RankException.cs
- Atom10FormatterFactory.cs
- EventTrigger.cs
- NotFiniteNumberException.cs
- CodeComment.cs
- ExclusiveHandle.cs
- ColumnMapVisitor.cs
- ContentPathSegment.cs
- Triplet.cs
- ScrollPatternIdentifiers.cs
- XmlDataSourceView.cs
- ChangeNode.cs
- ToolboxItemSnapLineBehavior.cs
- Convert.cs
- XmlKeywords.cs
- ExtendedPropertyInfo.cs
- XPathNodeIterator.cs
- XmlChildEnumerator.cs
- PerformanceCounterPermissionEntryCollection.cs
- ImageList.cs
- MenuEventArgs.cs
- ErrorFormatter.cs
- SqlColumnizer.cs
- TablePattern.cs
- AssemblyAttributes.cs
- PlatformCulture.cs
- ComboBoxHelper.cs
- SHA512.cs
- EventLogStatus.cs
- XmlSchemaAnnotation.cs
- FileStream.cs
- TemplatedAdorner.cs
- BooleanSwitch.cs
- ColorAnimationUsingKeyFrames.cs
- BuildProvidersCompiler.cs
- RequestCachePolicy.cs
- VarRefManager.cs
- ConfigDefinitionUpdates.cs
- _SslStream.cs
- Frame.cs
- CachingHintValidation.cs
- _ContextAwareResult.cs
- ConfigurationLocation.cs
- OdbcHandle.cs
- PolicyReader.cs
- ListSortDescriptionCollection.cs
- MethodSignatureGenerator.cs
- ConnectionStringEditor.cs
- SourceElementsCollection.cs