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
- UIElementPropertyUndoUnit.cs
- ObjectListCommandsPage.cs
- DecoderFallbackWithFailureFlag.cs
- EntityDataSourceEntitySetNameItem.cs
- SingleSelectRootGridEntry.cs
- GeneralTransform3DGroup.cs
- SpeechUI.cs
- LoginView.cs
- HierarchicalDataBoundControl.cs
- TextBoxAutomationPeer.cs
- TableRowGroup.cs
- _BufferOffsetSize.cs
- XmlWrappingWriter.cs
- ContourSegment.cs
- SymLanguageVendor.cs
- Vector3DCollectionConverter.cs
- PriorityChain.cs
- MultiPropertyDescriptorGridEntry.cs
- OptimizedTemplateContentHelper.cs
- SqlDataSourceFilteringEventArgs.cs
- XmlResolver.cs
- WindowsSysHeader.cs
- ScriptReferenceEventArgs.cs
- HttpContext.cs
- RadioButtonAutomationPeer.cs
- MenuRendererStandards.cs
- FactoryRecord.cs
- ValidatingReaderNodeData.cs
- ToolboxComponentsCreatedEventArgs.cs
- RtfControlWordInfo.cs
- Decorator.cs
- SelectiveScrollingGrid.cs
- TraceInternal.cs
- RSACryptoServiceProvider.cs
- SmiRecordBuffer.cs
- HttpWriter.cs
- SimpleHandlerBuildProvider.cs
- ComplexObject.cs
- XmlExtensionFunction.cs
- PageBuildProvider.cs
- XPathArrayIterator.cs
- FixedLineResult.cs
- RadioButtonAutomationPeer.cs
- Pen.cs
- DataServiceContext.cs
- HttpContext.cs
- prefixendpointaddressmessagefilter.cs
- TextParaClient.cs
- CodeExporter.cs
- FrugalList.cs
- HtmlTitle.cs
- UICuesEvent.cs
- ListViewItem.cs
- InputScopeConverter.cs
- SrgsDocument.cs
- xmlfixedPageInfo.cs
- ListViewDataItem.cs
- GroupItemAutomationPeer.cs
- CodeIndexerExpression.cs
- ParseChildrenAsPropertiesAttribute.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- XmlSchemas.cs
- ActivityPreviewDesigner.cs
- cookie.cs
- ChameleonKey.cs
- SamlAuthorizationDecisionClaimResource.cs
- RequestDescription.cs
- InkPresenterAutomationPeer.cs
- Pkcs9Attribute.cs
- Hash.cs
- ModelItem.cs
- XsdBuildProvider.cs
- SessionSwitchEventArgs.cs
- Parser.cs
- MailMessage.cs
- ObjectSet.cs
- SqlCaseSimplifier.cs
- QueryReaderSettings.cs
- XdrBuilder.cs
- CatalogPartChrome.cs
- XmlSchemaAny.cs
- AutomationProperties.cs
- CommonDialog.cs
- QilUnary.cs
- ZoneLinkButton.cs
- DiscoveryClientRequestChannel.cs
- ScriptingJsonSerializationSection.cs
- SmtpSection.cs
- RightsManagementPermission.cs
- SimpleBitVector32.cs
- translator.cs
- DbMetaDataFactory.cs
- WorkflowQueue.cs
- StringStorage.cs
- ContextMenuStripGroupCollection.cs
- XmlDocumentFieldSchema.cs
- XmlConvert.cs
- OdbcEnvironmentHandle.cs
- PropertyMappingExceptionEventArgs.cs
- LightweightEntityWrapper.cs