Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } } } }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
- AxisAngleRotation3D.cs
- HttpListenerContext.cs
- MethodRental.cs
- BulletedList.cs
- DiffuseMaterial.cs
- XmlComment.cs
- _HTTPDateParse.cs
- EventLogLink.cs
- ByteRangeDownloader.cs
- SoapTypeAttribute.cs
- CodeParameterDeclarationExpression.cs
- XmlTextWriter.cs
- EdmProviderManifest.cs
- GenericXmlSecurityToken.cs
- WindowsMenu.cs
- DataControlButton.cs
- filewebresponse.cs
- PathFigureCollection.cs
- ObjectDataSourceMethodEventArgs.cs
- CommandEventArgs.cs
- IconHelper.cs
- EmptyStringExpandableObjectConverter.cs
- ContentElementCollection.cs
- LineBreak.cs
- StringKeyFrameCollection.cs
- DebugController.cs
- MatrixTransform.cs
- StorageComplexPropertyMapping.cs
- CfgParser.cs
- OletxEnlistment.cs
- SmiMetaData.cs
- LoadedOrUnloadedOperation.cs
- FrugalList.cs
- XamlFilter.cs
- _WebProxyDataBuilder.cs
- EDesignUtil.cs
- UserCancellationException.cs
- WebBrowserHelper.cs
- DataGridAddNewRow.cs
- TimeZone.cs
- XpsFixedDocumentReaderWriter.cs
- COM2TypeInfoProcessor.cs
- XmlExceptionHelper.cs
- Selection.cs
- TextOptionsInternal.cs
- WebBrowsableAttribute.cs
- GPRECT.cs
- ClientRuntimeConfig.cs
- IPAddressCollection.cs
- Decoder.cs
- SaveFileDialog.cs
- WorkflowEnvironment.cs
- CalendarDay.cs
- IBuiltInEvidence.cs
- graph.cs
- SmiEventSink_DeferedProcessing.cs
- KeyTime.cs
- MsmqMessageProperty.cs
- SQLInt32.cs
- EventLogEntryCollection.cs
- FontResourceCache.cs
- SelectionPattern.cs
- ListViewDeletedEventArgs.cs
- OptionUsage.cs
- CreateUserWizardStep.cs
- DropTarget.cs
- UDPClient.cs
- SendMessageChannelCache.cs
- TypeExtensionConverter.cs
- EntityDataSourceReferenceGroup.cs
- CompilationLock.cs
- SqlWebEventProvider.cs
- NumberAction.cs
- GenericParameterDataContract.cs
- Encoder.cs
- GPStream.cs
- Ray3DHitTestResult.cs
- RectKeyFrameCollection.cs
- ProfileSettings.cs
- PixelShader.cs
- MetaModel.cs
- IsolatedStorageFilePermission.cs
- QilReplaceVisitor.cs
- parserscommon.cs
- OletxVolatileEnlistment.cs
- AnimationClock.cs
- TextSchema.cs
- ToolStripGrip.cs
- ManagedFilter.cs
- CodePageUtils.cs
- NativeObjectSecurity.cs
- ServiceCredentialsSecurityTokenManager.cs
- SqlFactory.cs
- ScrollContentPresenter.cs
- ScriptRef.cs
- UriParserTemplates.cs
- TargetControlTypeCache.cs
- Light.cs
- ConstantExpression.cs
- WebPartConnectionsCancelVerb.cs