Code:
/ FX-1434 / FX-1434 / 1.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
- PropertySourceInfo.cs
- DataControlButton.cs
- EntityClientCacheKey.cs
- ObjectContext.cs
- SpeechUI.cs
- SafeRightsManagementSessionHandle.cs
- ChtmlSelectionListAdapter.cs
- TableRowCollection.cs
- OdbcInfoMessageEvent.cs
- SafeCryptoHandles.cs
- PartialList.cs
- ToolConsole.cs
- CroppedBitmap.cs
- ParserContext.cs
- DataAdapter.cs
- MethodBody.cs
- RequestStatusBarUpdateEventArgs.cs
- TextClipboardData.cs
- PenThreadWorker.cs
- Decimal.cs
- SpeechRecognitionEngine.cs
- Token.cs
- BooleanStorage.cs
- QilStrConcat.cs
- DecoderExceptionFallback.cs
- QualifiedCellIdBoolean.cs
- HttpServerVarsCollection.cs
- followingquery.cs
- ListBindingConverter.cs
- Scene3D.cs
- XmlSchemaExporter.cs
- UserPreferenceChangingEventArgs.cs
- ForwardPositionQuery.cs
- AvTraceDetails.cs
- Int32EqualityComparer.cs
- AdapterUtil.cs
- VisualStyleElement.cs
- controlskin.cs
- NegotiateStream.cs
- AccessDataSourceView.cs
- InlineUIContainer.cs
- FileChangesMonitor.cs
- AttachedAnnotation.cs
- StagingAreaInputItem.cs
- ForeignKeyConstraint.cs
- FileUtil.cs
- Type.cs
- TargetInvocationException.cs
- AspNetSynchronizationContext.cs
- HtmlUtf8RawTextWriter.cs
- MemberCollection.cs
- ControllableStoryboardAction.cs
- BuildProvider.cs
- DbProviderManifest.cs
- TextEffectResolver.cs
- MarshalByValueComponent.cs
- InputQueue.cs
- TextHidden.cs
- NotImplementedException.cs
- ServiceHostingEnvironment.cs
- FontNameEditor.cs
- WebBrowserDesigner.cs
- GlyphElement.cs
- GlobalProxySelection.cs
- CommandLibraryHelper.cs
- BooleanExpr.cs
- PointCollectionValueSerializer.cs
- UnicastIPAddressInformationCollection.cs
- ObjectAssociationEndMapping.cs
- TreeWalker.cs
- VoiceObjectToken.cs
- TargetFrameworkUtil.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- ServicePoint.cs
- HtmlHead.cs
- XmlNamespaceManager.cs
- SapiGrammar.cs
- CodeGeneratorAttribute.cs
- PackageStore.cs
- AssertSection.cs
- Trace.cs
- DesignerSerializationOptionsAttribute.cs
- SingleKeyFrameCollection.cs
- DrawingState.cs
- ThreadStateException.cs
- Token.cs
- TextDecorationCollectionConverter.cs
- CodeCatchClause.cs
- CreateUserWizardAutoFormat.cs
- HTTPNotFoundHandler.cs
- StrokeCollectionDefaultValueFactory.cs
- sqlcontext.cs
- StringFreezingAttribute.cs
- CollectionViewGroupRoot.cs
- RegexMatch.cs
- XmlSchemaSimpleTypeRestriction.cs
- ReachDocumentReferenceSerializer.cs
- CodeCommentStatementCollection.cs
- IntranetCredentialPolicy.cs
- SqlTypeSystemProvider.cs