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
- WebServiceReceive.cs
- UserControlBuildProvider.cs
- CodeEventReferenceExpression.cs
- RadioButtonFlatAdapter.cs
- PeerNameRecord.cs
- PrimarySelectionGlyph.cs
- HostUtils.cs
- MLangCodePageEncoding.cs
- DelegateHelpers.cs
- BindingMAnagerBase.cs
- TriggerBase.cs
- linebase.cs
- WebServiceReceive.cs
- MultilineStringConverter.cs
- DurableMessageDispatchInspector.cs
- RecordBuilder.cs
- Substitution.cs
- ObjectFullSpanRewriter.cs
- RadioButtonPopupAdapter.cs
- StyleCollection.cs
- ValidatorCompatibilityHelper.cs
- Internal.cs
- ISFClipboardData.cs
- AbsoluteQuery.cs
- RecognizedWordUnit.cs
- TypeLibConverter.cs
- PostBackTrigger.cs
- XmlNodeChangedEventManager.cs
- InfocardInteractiveChannelInitializer.cs
- XmlConverter.cs
- LayoutEngine.cs
- DataServiceProcessingPipelineEventArgs.cs
- DataSourceView.cs
- DiscoveryMessageSequenceGenerator.cs
- InternalBufferOverflowException.cs
- MimeTypeMapper.cs
- RowVisual.cs
- FixedStringLookup.cs
- RotateTransform.cs
- HttpResponseHeader.cs
- UnsafeMethods.cs
- ColorPalette.cs
- ImageDrawing.cs
- RegexRunner.cs
- _ConnectionGroup.cs
- FileDialog.cs
- GregorianCalendarHelper.cs
- SQLDateTime.cs
- DecimalConverter.cs
- HtmlMobileTextWriter.cs
- ZipFileInfoCollection.cs
- SecurityContextSecurityToken.cs
- LogAppendAsyncResult.cs
- XmlAggregates.cs
- ReversePositionQuery.cs
- ResourceSet.cs
- MDIControlStrip.cs
- RoutingConfiguration.cs
- InstanceCollisionException.cs
- ObjectQueryState.cs
- BmpBitmapDecoder.cs
- DoubleStorage.cs
- CustomErrorsSection.cs
- MetafileHeader.cs
- WebPartUtil.cs
- EntityProxyFactory.cs
- BamlRecords.cs
- ComPlusInstanceContextInitializer.cs
- MediaCommands.cs
- EffectiveValueEntry.cs
- DataGridViewColumnEventArgs.cs
- TextElement.cs
- objectresult_tresulttype.cs
- FragmentQueryProcessor.cs
- DeclarativeExpressionConditionDeclaration.cs
- DES.cs
- ComponentCollection.cs
- DriveNotFoundException.cs
- BinaryFormatterWriter.cs
- DynamicFilter.cs
- RowParagraph.cs
- BindingWorker.cs
- CacheDependency.cs
- ProcessHostMapPath.cs
- HttpPostProtocolImporter.cs
- WaitHandle.cs
- CellQuery.cs
- WindowsFormsHelpers.cs
- CatchBlock.cs
- RenderingEventArgs.cs
- SrgsItemList.cs
- DataGridViewSortCompareEventArgs.cs
- PluggableProtocol.cs
- RenderDataDrawingContext.cs
- Quaternion.cs
- SerTrace.cs
- LoadWorkflowByInstanceKeyCommand.cs
- ContentFileHelper.cs
- DataGridViewCellEventArgs.cs
- Pkcs9Attribute.cs