Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //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. // Copyright (c) Microsoft Corporation. All rights reserved.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
- FormViewUpdatedEventArgs.cs
- SingleObjectCollection.cs
- FormViewInsertEventArgs.cs
- IFlowDocumentViewer.cs
- NumericPagerField.cs
- HtmlImage.cs
- TypedTableBase.cs
- ConsumerConnectionPointCollection.cs
- CallContext.cs
- AbsoluteQuery.cs
- ConfigViewGenerator.cs
- EndpointDispatcherTable.cs
- AbstractSvcMapFileLoader.cs
- FlowDocumentFormatter.cs
- MenuItemBinding.cs
- WebServiceEnumData.cs
- Timeline.cs
- PanelStyle.cs
- EncoderBestFitFallback.cs
- MetadataArtifactLoaderCompositeFile.cs
- XmlCustomFormatter.cs
- IisTraceListener.cs
- IgnoreFileBuildProvider.cs
- PriorityBindingExpression.cs
- TypeDescriptor.cs
- SqlDependencyUtils.cs
- DataGridAddNewRow.cs
- WebUtil.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- DeclarativeCatalogPart.cs
- Margins.cs
- Queue.cs
- PropertyExpression.cs
- MessageBox.cs
- XmlChoiceIdentifierAttribute.cs
- EvidenceTypeDescriptor.cs
- GZipStream.cs
- RequestQueryParser.cs
- PromptStyle.cs
- FastEncoderWindow.cs
- RequestCache.cs
- FormatException.cs
- PtsHelper.cs
- WorkflowDesignerColors.cs
- InvokeWebService.cs
- RoleGroup.cs
- RegexCaptureCollection.cs
- Graph.cs
- HttpCookieCollection.cs
- GradientStop.cs
- IpcClientManager.cs
- SerializationTrace.cs
- ArgIterator.cs
- Thickness.cs
- PersistenceTypeAttribute.cs
- ListMarkerLine.cs
- XmlSchemaCollection.cs
- GridLengthConverter.cs
- _AutoWebProxyScriptHelper.cs
- ColumnResizeUndoUnit.cs
- SoapMessage.cs
- DataSourceXmlSerializer.cs
- DecoderBestFitFallback.cs
- ServiceBuildProvider.cs
- Double.cs
- StrongNamePublicKeyBlob.cs
- PrintPreviewGraphics.cs
- DBParameter.cs
- Convert.cs
- WindowsTitleBar.cs
- TextEditorSelection.cs
- VersionedStreamOwner.cs
- ConfigurationValue.cs
- TextPointer.cs
- FullTextBreakpoint.cs
- KnownIds.cs
- streamingZipPartStream.cs
- TargetControlTypeAttribute.cs
- CompilationLock.cs
- TagMapInfo.cs
- SponsorHelper.cs
- BaseCodePageEncoding.cs
- EntityException.cs
- ToggleProviderWrapper.cs
- Property.cs
- Span.cs
- TreeNode.cs
- ColorMap.cs
- XsltInput.cs
- RSAOAEPKeyExchangeDeformatter.cs
- AutomationEventArgs.cs
- SafeArchiveContext.cs
- RoutedUICommand.cs
- ExpressionBuilder.cs
- EmptyStringExpandableObjectConverter.cs
- UrlAuthFailedErrorFormatter.cs
- HtmlTableRow.cs
- WsdlBuildProvider.cs
- QilXmlReader.cs
- ScrollProperties.cs