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
- EncryptedReference.cs
- PerformanceCounterPermission.cs
- ReferencedAssembly.cs
- WindowsSolidBrush.cs
- NamespaceEmitter.cs
- MouseWheelEventArgs.cs
- SecurityElement.cs
- HttpModuleCollection.cs
- SortedSet.cs
- PeerNodeTraceRecord.cs
- MergablePropertyAttribute.cs
- SiteMapNodeCollection.cs
- PreProcessInputEventArgs.cs
- CodeIterationStatement.cs
- TextServicesCompartment.cs
- CurrencyWrapper.cs
- InternalConfigRoot.cs
- ListViewItem.cs
- Shape.cs
- PersonalizationState.cs
- MultipleViewPattern.cs
- NativeMethods.cs
- DeleteWorkflowOwnerCommand.cs
- BamlLocalizer.cs
- ImageListStreamer.cs
- MessageQueueTransaction.cs
- XPathCompileException.cs
- BindUriHelper.cs
- SByteStorage.cs
- StorageScalarPropertyMapping.cs
- LightweightEntityWrapper.cs
- TypeGeneratedEventArgs.cs
- NCryptNative.cs
- Freezable.cs
- SettingsPropertyWrongTypeException.cs
- InternalResources.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- XmlSchemaSet.cs
- XmlCollation.cs
- Attributes.cs
- CapabilitiesRule.cs
- SymDocumentType.cs
- IRCollection.cs
- Table.cs
- VersionedStream.cs
- DefaultValueTypeConverter.cs
- ProcessInfo.cs
- RegexCaptureCollection.cs
- CodeNamespaceImportCollection.cs
- SqlConnectionStringBuilder.cs
- SocketSettings.cs
- SystemWebCachingSectionGroup.cs
- SaveFileDialogDesigner.cs
- TileBrush.cs
- DoubleUtil.cs
- BitmapSizeOptions.cs
- ModelFunction.cs
- ReflectionPermission.cs
- HyperLinkColumn.cs
- AdapterDictionary.cs
- LockRecoveryTask.cs
- Exception.cs
- TextElementCollection.cs
- TargetException.cs
- ParserHooks.cs
- BoundColumn.cs
- ListContractAdapter.cs
- TransformerTypeCollection.cs
- WizardForm.cs
- DSASignatureDeformatter.cs
- PropertyInformation.cs
- SerializationException.cs
- RtType.cs
- EdmComplexPropertyAttribute.cs
- XmlElementAttribute.cs
- HttpHandlerAction.cs
- WebPartEventArgs.cs
- WindowsTreeView.cs
- propertyentry.cs
- SchemaManager.cs
- BamlStream.cs
- ElementUtil.cs
- MemberAccessException.cs
- LineGeometry.cs
- BitmapPalettes.cs
- EpmHelper.cs
- RelationshipEndMember.cs
- PrintDialog.cs
- UnauthorizedWebPart.cs
- FlowPosition.cs
- DocumentStatusResources.cs
- EncryptedKeyIdentifierClause.cs
- RequestCacheValidator.cs
- ValidatedControlConverter.cs
- GridViewSortEventArgs.cs
- EntityDataSourceWizardForm.cs
- Typography.cs
- CalloutQueueItem.cs
- CompositeFontParser.cs
- DateTimeConverter2.cs