Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextEffect.cs
- ReadOnlyCollectionBase.cs
- OutputCache.cs
- ClientConfigurationSystem.cs
- BufferedWebEventProvider.cs
- Rect.cs
- SkewTransform.cs
- LambdaCompiler.Address.cs
- InvalidDataException.cs
- SQLCharsStorage.cs
- ClientOptions.cs
- CellConstantDomain.cs
- HiddenField.cs
- InputScopeNameConverter.cs
- PolicyManager.cs
- RefreshPropertiesAttribute.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- DoubleUtil.cs
- HijriCalendar.cs
- _NtlmClient.cs
- MaskedTextProvider.cs
- DataGridColumnHeadersPresenter.cs
- InlineObject.cs
- SqlClientWrapperSmiStreamChars.cs
- PermissionSetTriple.cs
- OdbcParameterCollection.cs
- ProcessModelInfo.cs
- OperatingSystem.cs
- formatter.cs
- CompensatableTransactionScopeActivityDesigner.cs
- StsCommunicationException.cs
- SiteMapNodeItem.cs
- TagMapInfo.cs
- SQLMoneyStorage.cs
- ArrayWithOffset.cs
- ExpressionCopier.cs
- PrinterResolution.cs
- GestureRecognizer.cs
- DebugHandleTracker.cs
- DataGridViewComboBoxCell.cs
- TypeTypeConverter.cs
- XmlCharCheckingReader.cs
- MappingException.cs
- HttpModuleAction.cs
- WsdlBuildProvider.cs
- AuthenticationServiceManager.cs
- NeutralResourcesLanguageAttribute.cs
- UnsafeNativeMethodsCLR.cs
- EventSchemaTraceListener.cs
- SqlMethods.cs
- TimerElapsedEvenArgs.cs
- UdpDiscoveryMessageFilter.cs
- BindingExpressionBase.cs
- MissingFieldException.cs
- WebPartZoneBase.cs
- Command.cs
- KoreanLunisolarCalendar.cs
- WhitespaceRule.cs
- NetPipeSection.cs
- GradientStopCollection.cs
- SafeNativeMethods.cs
- TabletDevice.cs
- CommandDesigner.cs
- CodeTypeOfExpression.cs
- EnumDataContract.cs
- CSharpCodeProvider.cs
- FixedSOMPageElement.cs
- TreeViewItemAutomationPeer.cs
- _FtpControlStream.cs
- GridSplitter.cs
- AttributeCollection.cs
- HideDisabledControlAdapter.cs
- BindingMemberInfo.cs
- IPAddressCollection.cs
- ExpandableObjectConverter.cs
- Span.cs
- Run.cs
- SrgsGrammarCompiler.cs
- sqlpipe.cs
- TextBox.cs
- CrossContextChannel.cs
- Group.cs
- ColorTypeConverter.cs
- WindowsScrollBarBits.cs
- ByteAnimationBase.cs
- ClientTarget.cs
- TreeSet.cs
- UnhandledExceptionEventArgs.cs
- RecognizerInfo.cs
- HttpResponseHeader.cs
- ScrollViewerAutomationPeer.cs
- _LazyAsyncResult.cs
- AndCondition.cs
- ThemeInfoAttribute.cs
- EntityCommandCompilationException.cs
- AssociativeAggregationOperator.cs
- LinkButton.cs
- SoapIncludeAttribute.cs
- ChangeTracker.cs
- AudioFileOut.cs