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
- FixedDocumentPaginator.cs
- TogglePatternIdentifiers.cs
- HtmlDocument.cs
- PreviewPrintController.cs
- MemberRelationshipService.cs
- InlineCollection.cs
- HandleRef.cs
- ValidatingPropertiesEventArgs.cs
- StandardBindingOptionalReliableSessionElement.cs
- DispatcherEventArgs.cs
- ScriptResourceMapping.cs
- UrlMappingsSection.cs
- FileDialog_Vista.cs
- CommentEmitter.cs
- ApplicationActivator.cs
- SqlWorkflowPersistenceService.cs
- DbProviderFactory.cs
- ChannelListenerBase.cs
- ClientTarget.cs
- TraceHwndHost.cs
- SiteOfOriginContainer.cs
- DependencyObject.cs
- EventRecordWrittenEventArgs.cs
- SamlAssertion.cs
- TerminatingOperationBehavior.cs
- NamespaceMapping.cs
- BuildResultCache.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- WSHttpBindingBaseElement.cs
- SafeFileMappingHandle.cs
- XmlSchemaComplexContentExtension.cs
- SystemIPGlobalProperties.cs
- Color.cs
- SuppressMessageAttribute.cs
- SlotInfo.cs
- DragEvent.cs
- Part.cs
- ParallelEnumerableWrapper.cs
- RegexCompiler.cs
- NameValueFileSectionHandler.cs
- ObjectSerializerFactory.cs
- ZipIOCentralDirectoryFileHeader.cs
- serverconfig.cs
- CachedBitmap.cs
- OdbcConnectionFactory.cs
- ReturnEventArgs.cs
- TraceUtils.cs
- FormsAuthenticationUser.cs
- IIS7WorkerRequest.cs
- HttpConfigurationSystem.cs
- __FastResourceComparer.cs
- PrinterResolution.cs
- AggregateNode.cs
- ReliableMessagingVersion.cs
- PermissionListSet.cs
- Deflater.cs
- IdentityReference.cs
- WriteableOnDemandPackagePart.cs
- TextRangeEditLists.cs
- ObjectQueryState.cs
- CodeAccessSecurityEngine.cs
- Menu.cs
- SessionParameter.cs
- CodeChecksumPragma.cs
- SQLBytesStorage.cs
- AmbientLight.cs
- Geometry.cs
- StringHandle.cs
- RpcAsyncResult.cs
- WebPartDisplayModeCancelEventArgs.cs
- SqlConnectionStringBuilder.cs
- PageVisual.cs
- TaskDesigner.cs
- GenericTextProperties.cs
- PartialCachingControl.cs
- ColumnHeaderConverter.cs
- UidManager.cs
- DragAssistanceManager.cs
- QilFactory.cs
- InheritanceContextChangedEventManager.cs
- TableParagraph.cs
- DiagnosticsConfigurationHandler.cs
- DistinctQueryOperator.cs
- OdbcReferenceCollection.cs
- WpfSharedBamlSchemaContext.cs
- ItemAutomationPeer.cs
- CryptographicAttribute.cs
- regiisutil.cs
- TranslateTransform.cs
- LayoutEditorPart.cs
- BoundColumn.cs
- ClientOptions.cs
- ConfigXmlComment.cs
- DbDataAdapter.cs
- CallbackValidatorAttribute.cs
- DataGridViewRowCancelEventArgs.cs
- Rotation3D.cs
- StringInfo.cs
- CoTaskMemSafeHandle.cs
- OwnerDrawPropertyBag.cs