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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StylusTip.cs
- wmiprovider.cs
- SingleConverter.cs
- DbConnectionOptions.cs
- MediaElementAutomationPeer.cs
- RegexGroup.cs
- SpellerHighlightLayer.cs
- CatchBlock.cs
- PrintDialog.cs
- MemberDescriptor.cs
- HttpValueCollection.cs
- CaseInsensitiveHashCodeProvider.cs
- SQLBytesStorage.cs
- SiteMapProvider.cs
- EventSourceCreationData.cs
- ArgumentNullException.cs
- EmptyControlCollection.cs
- IPipelineRuntime.cs
- ClientCredentials.cs
- WebSysDisplayNameAttribute.cs
- _TLSstream.cs
- JsonFaultDetail.cs
- SectionInput.cs
- Decimal.cs
- ClientBuildManagerCallback.cs
- XNameTypeConverter.cs
- DragStartedEventArgs.cs
- ObjectResult.cs
- IgnoreDeviceFilterElementCollection.cs
- EntityStoreSchemaFilterEntry.cs
- PasswordPropertyTextAttribute.cs
- DocumentSignatureManager.cs
- BuildProviderUtils.cs
- CustomValidator.cs
- InkCanvasInnerCanvas.cs
- ProtocolsConfigurationHandler.cs
- OletxCommittableTransaction.cs
- Odbc32.cs
- _AutoWebProxyScriptEngine.cs
- Bold.cs
- WebPartConnectionsEventArgs.cs
- StylusPointPropertyInfoDefaults.cs
- DetailsViewUpdatedEventArgs.cs
- WindowsFormsHost.cs
- ApplicationActivator.cs
- TypeSystem.cs
- XmlSchemaObject.cs
- GridViewUpdatedEventArgs.cs
- DbXmlEnabledProviderManifest.cs
- WebBrowserHelper.cs
- StyleSheet.cs
- PolyLineSegment.cs
- FixedPageProcessor.cs
- ResourceDescriptionAttribute.cs
- DBAsyncResult.cs
- BaseTemplateBuildProvider.cs
- LinkAreaEditor.cs
- Vector.cs
- ipaddressinformationcollection.cs
- BoolLiteral.cs
- CodeExporter.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- SslStream.cs
- SspiNegotiationTokenAuthenticator.cs
- DataGridViewCheckBoxColumn.cs
- RootProfilePropertySettingsCollection.cs
- UrlPropertyAttribute.cs
- RequestCache.cs
- AutoSizeToolBoxItem.cs
- AbandonedMutexException.cs
- DataRowView.cs
- ColorTransform.cs
- PartialTrustValidationBehavior.cs
- Int64AnimationBase.cs
- DictationGrammar.cs
- DataProtection.cs
- CasesDictionary.cs
- ImportedPolicyConversionContext.cs
- ParagraphResult.cs
- Buffer.cs
- EventProxy.cs
- FrameworkContextData.cs
- SignatureHelper.cs
- HwndSource.cs
- TextServicesContext.cs
- XhtmlBasicObjectListAdapter.cs
- SmtpNegotiateAuthenticationModule.cs
- SendContent.cs
- SecurityUtils.cs
- PerformanceCountersElement.cs
- ParallelTimeline.cs
- FieldNameLookup.cs
- COM2Properties.cs
- SqlRowUpdatedEvent.cs
- NavigationPropertyEmitter.cs
- RowsCopiedEventArgs.cs
- EventBuilder.cs
- ProcessModule.cs
- SrgsDocument.cs
- MissingSatelliteAssemblyException.cs