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
- IgnoreDataMemberAttribute.cs
- WorkflowStateRollbackService.cs
- SmtpException.cs
- SelectionItemPattern.cs
- Track.cs
- XPathMultyIterator.cs
- TraceContextRecord.cs
- SchemaManager.cs
- Canvas.cs
- EndCreateSecurityTokenRequest.cs
- OdbcDataReader.cs
- SecurityToken.cs
- RemoteWebConfigurationHostStream.cs
- TextUtf8RawTextWriter.cs
- SpellerHighlightLayer.cs
- Int32CollectionConverter.cs
- Label.cs
- DebugView.cs
- MouseEvent.cs
- DoubleCollectionConverter.cs
- GeometryModel3D.cs
- VBCodeProvider.cs
- ListBoxItemWrapperAutomationPeer.cs
- TerminatorSinks.cs
- PropertyCondition.cs
- peersecuritysettings.cs
- XmlSchemaSimpleTypeUnion.cs
- SqlBulkCopyColumnMapping.cs
- HotCommands.cs
- URL.cs
- ProcessModelInfo.cs
- ExtentJoinTreeNode.cs
- BamlBinaryWriter.cs
- StrongNameKeyPair.cs
- SwitchAttribute.cs
- CodeTypeReferenceExpression.cs
- CodeAssignStatement.cs
- ExclusiveTcpListener.cs
- SessionState.cs
- GradientBrush.cs
- MSAANativeProvider.cs
- MediaPlayer.cs
- ApplicationActivator.cs
- FigureParagraph.cs
- ElementUtil.cs
- UrlMappingCollection.cs
- CleanUpVirtualizedItemEventArgs.cs
- SettingsPropertyValue.cs
- QuaternionAnimationUsingKeyFrames.cs
- SystemEvents.cs
- PrtCap_Public.cs
- CompilerTypeWithParams.cs
- OperationFormatter.cs
- DateRangeEvent.cs
- DrawingContext.cs
- DataKeyCollection.cs
- Function.cs
- ObjectDataSourceEventArgs.cs
- Int32CollectionConverter.cs
- PackageProperties.cs
- ExtendedTransformFactory.cs
- XmlAnyElementAttribute.cs
- coordinator.cs
- XmlSchemaChoice.cs
- TransactionFlowBindingElementImporter.cs
- LoginName.cs
- Section.cs
- IDictionary.cs
- TextDecoration.cs
- ListControlStringCollectionEditor.cs
- IriParsingElement.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- WebBrowserContainer.cs
- SecurityException.cs
- UICuesEvent.cs
- ImageAnimator.cs
- SchemaObjectWriter.cs
- WebHttpSecurityModeHelper.cs
- ProviderSettingsCollection.cs
- FieldToken.cs
- IndependentlyAnimatedPropertyMetadata.cs
- SettingsPropertyIsReadOnlyException.cs
- WebEvents.cs
- XamlTemplateSerializer.cs
- SerializationAttributes.cs
- PackageRelationship.cs
- Focus.cs
- ThreadAbortException.cs
- FrameAutomationPeer.cs
- Separator.cs
- ApplicationException.cs
- LineUtil.cs
- HtmlFormWrapper.cs
- JournalEntry.cs
- DashStyle.cs
- CodeDirectoryCompiler.cs
- PersonalizationStateInfoCollection.cs
- dataobject.cs
- DrawingAttributes.cs
- SqlInternalConnectionSmi.cs