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
- DataGridView.cs
- KeyFrames.cs
- DirectoryNotFoundException.cs
- VersionPair.cs
- QuaternionAnimation.cs
- SHA384Managed.cs
- UpdatePanelTrigger.cs
- InkCanvasSelectionAdorner.cs
- URL.cs
- ShutDownListener.cs
- XmlSchemaComplexContent.cs
- ComponentDesigner.cs
- Encoder.cs
- ScriptMethodAttribute.cs
- __Filters.cs
- X509CertificateCollection.cs
- Formatter.cs
- UserControl.cs
- DataSourceView.cs
- sqlnorm.cs
- DataSourceHelper.cs
- CountdownEvent.cs
- NameValuePermission.cs
- HiddenField.cs
- ExceptionValidationRule.cs
- Grammar.cs
- MarkedHighlightComponent.cs
- TransformConverter.cs
- GregorianCalendarHelper.cs
- NamespaceList.cs
- OrthographicCamera.cs
- EventLogTraceListener.cs
- UnauthorizedAccessException.cs
- NetCodeGroup.cs
- ProtocolViolationException.cs
- NameValueCollection.cs
- StringUtil.cs
- SafeSecurityHelper.cs
- DetailsViewRow.cs
- CustomAttributeFormatException.cs
- EndEvent.cs
- IImplicitResourceProvider.cs
- InitializationEventAttribute.cs
- UriExt.cs
- SecurityKeyIdentifier.cs
- CodeDirectionExpression.cs
- RsaSecurityTokenAuthenticator.cs
- MimeWriter.cs
- LockCookie.cs
- PassportPrincipal.cs
- CompModSwitches.cs
- _Events.cs
- ClientFormsAuthenticationMembershipProvider.cs
- KeyProperty.cs
- FixedStringLookup.cs
- Int64AnimationBase.cs
- NameObjectCollectionBase.cs
- SHA384.cs
- Context.cs
- SlipBehavior.cs
- DES.cs
- CodeGroup.cs
- MenuItem.cs
- TreeNodeStyle.cs
- MatcherBuilder.cs
- QilValidationVisitor.cs
- Content.cs
- initElementDictionary.cs
- DisposableCollectionWrapper.cs
- FragmentQueryKB.cs
- OdbcException.cs
- ProcessHostConfigUtils.cs
- WindowsComboBox.cs
- ConsoleEntryPoint.cs
- ToolStripPanel.cs
- ElementHost.cs
- EventEntry.cs
- StagingAreaInputItem.cs
- SmiSettersStream.cs
- SqlCommand.cs
- WebPartEditVerb.cs
- Opcode.cs
- TextBox.cs
- ReliableChannelBinder.cs
- CodeCompiler.cs
- ColorInterpolationModeValidation.cs
- ConfigurationPermission.cs
- XmlText.cs
- DataGridPageChangedEventArgs.cs
- DBSchemaTable.cs
- DataGridViewColumnConverter.cs
- SecureUICommand.cs
- OSEnvironmentHelper.cs
- AppDomainUnloadedException.cs
- BookmarkEventArgs.cs
- StructuredTypeEmitter.cs
- oledbmetadatacolumnnames.cs
- Attribute.cs
- IgnoreFileBuildProvider.cs
- SizeAnimationBase.cs