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
- NumericExpr.cs
- StrokeIntersection.cs
- TextEditorLists.cs
- RegexBoyerMoore.cs
- XmlToDatasetMap.cs
- BindingCollection.cs
- Point3DCollection.cs
- CategoryAttribute.cs
- InfoCardRSACryptoProvider.cs
- SpoolingTask.cs
- BitmapEffectDrawingContextWalker.cs
- Point3DAnimationBase.cs
- SQLDateTime.cs
- CheckBoxFlatAdapter.cs
- ScheduleChanges.cs
- OdbcException.cs
- WebPartsPersonalization.cs
- ExtensionDataReader.cs
- SelectionUIHandler.cs
- DataService.cs
- SqlWorkflowInstanceStoreLock.cs
- OleServicesContext.cs
- RangeBaseAutomationPeer.cs
- SafeHandle.cs
- SizeConverter.cs
- XpsResourcePolicy.cs
- SecurityTokenResolver.cs
- BaseUriHelper.cs
- MissingMemberException.cs
- IBuiltInEvidence.cs
- WeakReference.cs
- DataGridViewAutoSizeModeEventArgs.cs
- InfoCardKeyedHashAlgorithm.cs
- SpeechSynthesizer.cs
- FontFamilyConverter.cs
- AppDomainAttributes.cs
- ChannelManagerHelpers.cs
- Substitution.cs
- ADRole.cs
- IIS7WorkerRequest.cs
- XdrBuilder.cs
- DTCTransactionManager.cs
- ImageIndexConverter.cs
- MonthCalendar.cs
- CollectionBase.cs
- DataServiceQueryOfT.cs
- PrtCap_Builder.cs
- ScriptReference.cs
- SchemaNotation.cs
- EmulateRecognizeCompletedEventArgs.cs
- DependencyPropertyDescriptor.cs
- Model3DGroup.cs
- FilterQuery.cs
- FreezableOperations.cs
- ResourcePermissionBaseEntry.cs
- EventLogConfiguration.cs
- HttpModulesSection.cs
- PauseStoryboard.cs
- MdiWindowListItemConverter.cs
- EdmToObjectNamespaceMap.cs
- MatrixTransform3D.cs
- HasCopySemanticsAttribute.cs
- RuntimeIdentifierPropertyAttribute.cs
- Stroke.cs
- JoinSymbol.cs
- ToolStripDropTargetManager.cs
- UnsafeNativeMethodsPenimc.cs
- WindowsRebar.cs
- ContentPresenter.cs
- DirectionalLight.cs
- HMACSHA512.cs
- DefaultAssemblyResolver.cs
- HttpListenerException.cs
- NavigationProgressEventArgs.cs
- TransformConverter.cs
- CqlParser.cs
- SecurityContext.cs
- RequestQueryParser.cs
- EntityModelSchemaGenerator.cs
- PermissionRequestEvidence.cs
- SecUtil.cs
- HttpConfigurationContext.cs
- LogExtent.cs
- RadioButtonBaseAdapter.cs
- DirectoryRedirect.cs
- GeneralTransform.cs
- JoinSymbol.cs
- CaseCqlBlock.cs
- TabItem.cs
- EdmItemCollection.OcAssemblyCache.cs
- DeobfuscatingStream.cs
- ColumnMapCopier.cs
- QuadraticBezierSegment.cs
- Encoder.cs
- UserMapPath.cs
- GridSplitter.cs
- ForeignKeyConstraint.cs
- SystemColors.cs
- ZipIOCentralDirectoryBlock.cs
- HtmlMeta.cs