Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //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. // Copyright (c) Microsoft Corporation. All rights reserved.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
- SiteMapNodeItem.cs
- RegisteredArrayDeclaration.cs
- SqlDataSourceDesigner.cs
- DocumentAutomationPeer.cs
- ColumnCollection.cs
- DataListCommandEventArgs.cs
- ECDsa.cs
- TargetPerspective.cs
- ChtmlTextBoxAdapter.cs
- DataGridViewUtilities.cs
- OleDbConnectionInternal.cs
- DesignerAutoFormat.cs
- CollectionViewProxy.cs
- HtmlImage.cs
- Utils.cs
- HyperLinkStyle.cs
- SQLStringStorage.cs
- Utils.cs
- PrintPageEvent.cs
- nulltextcontainer.cs
- DateRangeEvent.cs
- LocationChangedEventArgs.cs
- HuffmanTree.cs
- ComplexTypeEmitter.cs
- MetadataItem_Static.cs
- ComponentConverter.cs
- LayoutInformation.cs
- PseudoWebRequest.cs
- TemplatedWizardStep.cs
- AttributeCollection.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- ErrorFormatter.cs
- ButtonFlatAdapter.cs
- InheritablePropertyChangeInfo.cs
- CompilerGlobalScopeAttribute.cs
- VisualBrush.cs
- Condition.cs
- LayoutDump.cs
- PrintDialog.cs
- XmlSchemaAnnotation.cs
- MultiPartWriter.cs
- MouseButtonEventArgs.cs
- PackageRelationship.cs
- WebScriptEnablingBehavior.cs
- CLSCompliantAttribute.cs
- TextBounds.cs
- QueryContinueDragEventArgs.cs
- TypeConverter.cs
- StreamWriter.cs
- EntityDataSourceSelectingEventArgs.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- CacheDependency.cs
- UInt16Storage.cs
- FrameworkTextComposition.cs
- DataRowView.cs
- Tablet.cs
- CredentialCache.cs
- EntityKey.cs
- RC2CryptoServiceProvider.cs
- DoubleLink.cs
- TreeNodeMouseHoverEvent.cs
- HttpCapabilitiesSectionHandler.cs
- Parser.cs
- TextComposition.cs
- DiscoveryClientRequestChannel.cs
- CurrencyManager.cs
- ResourceExpressionBuilder.cs
- InputElement.cs
- EdmToObjectNamespaceMap.cs
- DbProviderSpecificTypePropertyAttribute.cs
- PathSegmentCollection.cs
- EncoderParameter.cs
- ArraySet.cs
- ReferenceSchema.cs
- DrawingCollection.cs
- baseaxisquery.cs
- TrackingParameters.cs
- DeflateStream.cs
- WasAdminWrapper.cs
- StructuralCache.cs
- DataConnectionHelper.cs
- QueuePathDialog.cs
- NameTable.cs
- ResourceDictionary.cs
- HtmlInputSubmit.cs
- SafeLocalMemHandle.cs
- WasNotInstalledException.cs
- BindingCompleteEventArgs.cs
- GatewayDefinition.cs
- parserscommon.cs
- CodeDefaultValueExpression.cs
- ControlHelper.cs
- DeviceContext.cs
- DataControlFieldHeaderCell.cs
- ColorTransformHelper.cs
- FixedElement.cs
- EnumValidator.cs
- SerializationAttributes.cs
- ADMembershipProvider.cs
- DataSysAttribute.cs