Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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.
*/
///
/// Represents an item that is saved in the class when view state
/// information is persisted between Web requests.
///
[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.
*/
///
/// Indicates whether the object has been modified.
///
public bool IsDirty {
get {
return isDirty;
}
set {
isDirty = value;
}
}
/*
* Property to access the StateItem value.
*/
///
/// Indicates the value of the item that is stored in the
/// object.
///
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.
//
//-----------------------------------------------------------------------------
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.
*/
///
/// Represents an item that is saved in the class when view state
/// information is persisted between Web requests.
///
[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.
*/
///
/// Indicates whether the object has been modified.
///
public bool IsDirty {
get {
return isDirty;
}
set {
isDirty = value;
}
}
/*
* Property to access the StateItem value.
*/
///
/// Indicates the value of the item that is stored in the
/// object.
///
public object Value {
get {
return value;
}
set {
this.value = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextElementEnumerator.cs
- NotEqual.cs
- QuadraticEase.cs
- ComponentEvent.cs
- VariableAction.cs
- Win32KeyboardDevice.cs
- InheritanceRules.cs
- ProtocolsConfigurationEntry.cs
- Validator.cs
- UserInitiatedNavigationPermission.cs
- MdImport.cs
- FileCodeGroup.cs
- PagerSettings.cs
- Evidence.cs
- BrushConverter.cs
- ChannelManagerService.cs
- EdmConstants.cs
- ClientTarget.cs
- TemplateLookupAction.cs
- ImageKeyConverter.cs
- ComponentEvent.cs
- SymbolMethod.cs
- CookielessHelper.cs
- ItemsPanelTemplate.cs
- ISAPIRuntime.cs
- XmlDataContract.cs
- WinEventHandler.cs
- SynchronizationFilter.cs
- OLEDB_Enum.cs
- GB18030Encoding.cs
- TraceHwndHost.cs
- QilInvokeEarlyBound.cs
- Sql8ConformanceChecker.cs
- TabRenderer.cs
- ReflectionPermission.cs
- Attributes.cs
- WebCodeGenerator.cs
- SettingsSection.cs
- AttachedProperty.cs
- MruCache.cs
- AlternateView.cs
- Identity.cs
- CodeAccessPermission.cs
- IFlowDocumentViewer.cs
- RequestCachePolicy.cs
- CompositeFontFamily.cs
- TextServicesCompartment.cs
- PropertyOverridesDialog.cs
- RestHandler.cs
- ValidationPropertyAttribute.cs
- EventData.cs
- SocketManager.cs
- WebServiceFaultDesigner.cs
- ConstraintCollection.cs
- RegexInterpreter.cs
- PageThemeBuildProvider.cs
- CompiledQueryCacheEntry.cs
- SecurityCriticalDataForSet.cs
- ImageListImageEditor.cs
- SimpleType.cs
- SchemaNotation.cs
- ProviderConnectionPointCollection.cs
- TimerEventSubscriptionCollection.cs
- ColorMap.cs
- GrammarBuilderWildcard.cs
- FormatSelectingMessageInspector.cs
- DataServiceRequest.cs
- NamedPipeAppDomainProtocolHandler.cs
- RegexBoyerMoore.cs
- ContourSegment.cs
- sqlmetadatafactory.cs
- CalendarTable.cs
- OleDbParameter.cs
- HtmlElementEventArgs.cs
- PeerSecurityHelpers.cs
- TypeReference.cs
- connectionpool.cs
- ParameterCollectionEditorForm.cs
- SqlEnums.cs
- ExpressionParser.cs
- StackBuilderSink.cs
- RoleManagerModule.cs
- PerformanceCountersElement.cs
- IRCollection.cs
- ComponentCommands.cs
- SubpageParaClient.cs
- SlotInfo.cs
- X509ChainElement.cs
- MarkupWriter.cs
- EnvelopedSignatureTransform.cs
- XmlSchemaSimpleContentExtension.cs
- ToolStripPanel.cs
- XamlSerializerUtil.cs
- SignatureToken.cs
- WorkflowCommandExtensionItem.cs
- ListControlStringCollectionEditor.cs
- ProcessModuleCollection.cs
- CircleHotSpot.cs
- MSHTMLHostUtil.cs
- OperationCanceledException.cs