Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- InfoCardServiceInstallComponent.cs
- CustomAttribute.cs
- EFColumnProvider.cs
- SelfIssuedAuthAsymmetricKey.cs
- panel.cs
- DataServiceProviderWrapper.cs
- PropertyManager.cs
- TitleStyle.cs
- TextWriter.cs
- XmlHierarchicalEnumerable.cs
- _Semaphore.cs
- UserPreferenceChangingEventArgs.cs
- KeyboardEventArgs.cs
- ArgIterator.cs
- MenuItemBinding.cs
- Int64Converter.cs
- DataGridViewAutoSizeModeEventArgs.cs
- DataBindingExpressionBuilder.cs
- FileDialog.cs
- PropertyEmitter.cs
- FontClient.cs
- SqlCacheDependencySection.cs
- PropertyEmitter.cs
- FillBehavior.cs
- BuildProviderAppliesToAttribute.cs
- ResourceDescriptionAttribute.cs
- DateTimeConstantAttribute.cs
- LabelAutomationPeer.cs
- CfgRule.cs
- TreeNodeCollection.cs
- MetricEntry.cs
- MatchingStyle.cs
- BitVector32.cs
- SerializationStore.cs
- FixedStringLookup.cs
- MessageDescriptionCollection.cs
- HtmlSelectionListAdapter.cs
- EasingQuaternionKeyFrame.cs
- RichTextBox.cs
- InProcStateClientManager.cs
- ASCIIEncoding.cs
- ZoneMembershipCondition.cs
- CompModSwitches.cs
- TextClipboardData.cs
- XmlSchemaAnyAttribute.cs
- SQLDateTime.cs
- XLinq.cs
- RowVisual.cs
- MulticastOption.cs
- CurrencyManager.cs
- ThaiBuddhistCalendar.cs
- LineSegment.cs
- ProgressiveCrcCalculatingStream.cs
- PolicyException.cs
- ExceptionUtil.cs
- DataGridColumnCollectionEditor.cs
- DataBoundLiteralControl.cs
- ProcessInfo.cs
- HttpCacheVaryByContentEncodings.cs
- XmlSchemaValidationException.cs
- InterleavedZipPartStream.cs
- GenericAuthenticationEventArgs.cs
- UnauthorizedWebPart.cs
- XD.cs
- XPathNodeIterator.cs
- ByteConverter.cs
- MetaModel.cs
- LabelExpression.cs
- ConcurrentStack.cs
- ImageIndexConverter.cs
- AlphabeticalEnumConverter.cs
- InvokeMemberBinder.cs
- LogManagementAsyncResult.cs
- NameScopePropertyAttribute.cs
- DragDeltaEventArgs.cs
- X509IssuerSerialKeyIdentifierClause.cs
- ItemCollection.cs
- FileInfo.cs
- XmlEncoding.cs
- CellParaClient.cs
- SystemWebExtensionsSectionGroup.cs
- EntityViewContainer.cs
- AppendHelper.cs
- XamlGridLengthSerializer.cs
- EventEntry.cs
- PersonalizationDictionary.cs
- InnerItemCollectionView.cs
- BindingExpressionBase.cs
- ClientSettingsSection.cs
- EDesignUtil.cs
- __ConsoleStream.cs
- OdbcParameterCollection.cs
- ProfessionalColors.cs
- UnsafeNativeMethods.cs
- DataTrigger.cs
- EventMetadata.cs
- CombinedGeometry.cs
- Symbol.cs
- ParentQuery.cs
- OracleDateTime.cs