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
- ComponentManagerBroker.cs
- LineServicesCallbacks.cs
- _ChunkParse.cs
- ProviderConnectionPoint.cs
- InstanceNormalEvent.cs
- SettingsBase.cs
- VirtualizedCellInfoCollection.cs
- Shared.cs
- PrintDialog.cs
- odbcmetadatafactory.cs
- DeclarativeCatalogPart.cs
- AccessDataSourceView.cs
- DebugController.cs
- ValidatorUtils.cs
- Tablet.cs
- PointCollectionConverter.cs
- ObjectDataSourceView.cs
- StylusPointProperty.cs
- HTMLTextWriter.cs
- ImageBrush.cs
- EditingScopeUndoUnit.cs
- _SafeNetHandles.cs
- TTSEvent.cs
- PropertyValue.cs
- FontSizeConverter.cs
- cookie.cs
- CodeBlockBuilder.cs
- ObjectDataSourceEventArgs.cs
- ImageSource.cs
- MappingSource.cs
- TableMethodGenerator.cs
- HttpHandlerAction.cs
- EntitySetDataBindingList.cs
- RotateTransform.cs
- Queue.cs
- ImageButton.cs
- CFGGrammar.cs
- ViewGenResults.cs
- InheritanceContextHelper.cs
- EdmFunction.cs
- BaseComponentEditor.cs
- PropertyExpression.cs
- DiscoveryMessageSequence11.cs
- CommandField.cs
- Application.cs
- StrongNameUtility.cs
- QueryAsyncResult.cs
- CompleteWizardStep.cs
- ObjectListGeneralPage.cs
- LabelEditEvent.cs
- WorkflowApplicationCompletedEventArgs.cs
- TextEditorTyping.cs
- InputMethodStateTypeInfo.cs
- HijriCalendar.cs
- _NetRes.cs
- ManipulationInertiaStartingEventArgs.cs
- UIElement3DAutomationPeer.cs
- UnaryExpression.cs
- Clipboard.cs
- DataSourceExpression.cs
- NonSerializedAttribute.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- GlyphRunDrawing.cs
- Control.cs
- X500Name.cs
- LineVisual.cs
- DrawingContextDrawingContextWalker.cs
- ColumnPropertiesGroup.cs
- SafeRegistryHandle.cs
- TransformedBitmap.cs
- SettingsSection.cs
- PasswordTextContainer.cs
- BooleanToVisibilityConverter.cs
- DateTimeUtil.cs
- SqlTriggerContext.cs
- SqlDependencyListener.cs
- StateElement.cs
- XmlSchemaParticle.cs
- ColorConvertedBitmapExtension.cs
- contentDescriptor.cs
- CrossSiteScriptingValidation.cs
- SqlCommandBuilder.cs
- TextSerializer.cs
- TextRangeEditLists.cs
- DataGridViewLinkColumn.cs
- InstanceOwner.cs
- HitTestParameters3D.cs
- Form.cs
- DocumentViewerAutomationPeer.cs
- selecteditemcollection.cs
- DataFormats.cs
- Adorner.cs
- GenericTypeParameterBuilder.cs
- MetadataElement.cs
- METAHEADER.cs
- CallSiteBinder.cs
- SubMenuStyleCollectionEditor.cs
- ObjectQueryState.cs
- Size.cs
- DocumentViewerAutomationPeer.cs