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
- ResourcesChangeInfo.cs
- DebugView.cs
- ZipIOLocalFileHeader.cs
- SymmetricAlgorithm.cs
- HideDisabledControlAdapter.cs
- SigningCredentials.cs
- AnnouncementService.cs
- AssociationType.cs
- BinaryNode.cs
- ConditionChanges.cs
- RelationshipFixer.cs
- Figure.cs
- DesignerActionVerbList.cs
- DataGridViewSelectedRowCollection.cs
- RayHitTestParameters.cs
- TableLayoutSettings.cs
- MailMessage.cs
- ImageMap.cs
- WindowsListViewSubItem.cs
- TrustManager.cs
- GenericXmlSecurityTokenAuthenticator.cs
- ToolStripManager.cs
- ContextMenuStripGroup.cs
- IdentityModelDictionary.cs
- TabItem.cs
- CodeCompileUnit.cs
- SafeNativeMemoryHandle.cs
- StoreContentChangedEventArgs.cs
- Hash.cs
- EmptyStringExpandableObjectConverter.cs
- QilReplaceVisitor.cs
- DataContext.cs
- DataTableReader.cs
- SafeViewOfFileHandle.cs
- WSTrustDec2005.cs
- TagMapInfo.cs
- BrushMappingModeValidation.cs
- TextRangeBase.cs
- ImageAttributes.cs
- DownloadProgressEventArgs.cs
- OptimizedTemplateContent.cs
- DescendantBaseQuery.cs
- CompoundFileDeflateTransform.cs
- AuthenticateEventArgs.cs
- OleDbPropertySetGuid.cs
- SystemWebSectionGroup.cs
- ShutDownListener.cs
- UnionExpr.cs
- PathFigureCollection.cs
- EditorPartChrome.cs
- ParenExpr.cs
- AbandonedMutexException.cs
- DataList.cs
- UIElement.cs
- Int32AnimationUsingKeyFrames.cs
- TextTreePropertyUndoUnit.cs
- PageTheme.cs
- IsolatedStoragePermission.cs
- AccessViolationException.cs
- AuthenticationService.cs
- SafeSecurityHelper.cs
- TextParagraphView.cs
- TrackingServices.cs
- ResourceDisplayNameAttribute.cs
- XmlValueConverter.cs
- SqlDataSourceEnumerator.cs
- NameService.cs
- IndexerNameAttribute.cs
- BindingList.cs
- InstanceLockLostException.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- GrammarBuilderRuleRef.cs
- RubberbandSelector.cs
- PersistenceIOParticipant.cs
- ProviderIncompatibleException.cs
- ClientSession.cs
- BehaviorService.cs
- DockingAttribute.cs
- PropertySourceInfo.cs
- FamilyMapCollection.cs
- RelationalExpressions.cs
- FocusWithinProperty.cs
- NetPipeSection.cs
- ColorPalette.cs
- PathNode.cs
- AsyncWaitHandle.cs
- UserInitiatedNavigationPermission.cs
- FormatException.cs
- CrossAppDomainChannel.cs
- CultureSpecificCharacterBufferRange.cs
- AuthenticationSection.cs
- AutomationElementCollection.cs
- InputLanguageManager.cs
- CollectionBase.cs
- SignerInfo.cs
- TraceFilter.cs
- ParserStack.cs
- PolicyImporterElement.cs
- Model3DCollection.cs
- FixedPage.cs