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. */ ////// [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
- FixedSOMFixedBlock.cs
- XmlException.cs
- XamlPoint3DCollectionSerializer.cs
- DisplayNameAttribute.cs
- clipboard.cs
- ParseNumbers.cs
- RequestUriProcessor.cs
- OracleDataReader.cs
- DataGridViewImageColumn.cs
- DataGrid.cs
- IISUnsafeMethods.cs
- ApplicationDirectoryMembershipCondition.cs
- CurrentTimeZone.cs
- ContractNamespaceAttribute.cs
- RijndaelCryptoServiceProvider.cs
- SecurityElement.cs
- DbTransaction.cs
- WindowsListViewItem.cs
- StorageEntitySetMapping.cs
- ListBindingHelper.cs
- DocumentXPathNavigator.cs
- StreamReader.cs
- TypeDelegator.cs
- ByeOperation11AsyncResult.cs
- PrimaryKeyTypeConverter.cs
- CharacterBuffer.cs
- WpfPayload.cs
- TemplateBaseAction.cs
- Transform3DGroup.cs
- WebPartActionVerb.cs
- DoubleLink.cs
- HtmlTableCellCollection.cs
- WebMessageEncoderFactory.cs
- HijriCalendar.cs
- DesignSurfaceManager.cs
- QueryStatement.cs
- TypeDescriptionProvider.cs
- PtsCache.cs
- DataGridItem.cs
- Animatable.cs
- QueryResult.cs
- Documentation.cs
- DriveNotFoundException.cs
- QueryCursorEventArgs.cs
- PointCollectionValueSerializer.cs
- PropertyEntry.cs
- DataTableNewRowEvent.cs
- UrlMapping.cs
- UmAlQuraCalendar.cs
- FontUnitConverter.cs
- ThreadAttributes.cs
- ClrProviderManifest.cs
- MemberPath.cs
- XmlReader.cs
- CodeTypeParameterCollection.cs
- ProcessingInstructionAction.cs
- PrePostDescendentsWalker.cs
- Emitter.cs
- WindowsTab.cs
- SecurityPermission.cs
- Compress.cs
- Rotation3DKeyFrameCollection.cs
- StandardCommandToolStripMenuItem.cs
- LayoutSettings.cs
- StatusBarPanel.cs
- ProjectionQueryOptionExpression.cs
- HttpModulesSection.cs
- DataGridViewColumnTypePicker.cs
- NullableFloatAverageAggregationOperator.cs
- SoapSchemaMember.cs
- ResXDataNode.cs
- PriorityBindingExpression.cs
- _TimerThread.cs
- securestring.cs
- ComplexPropertyEntry.cs
- ByteArrayHelperWithString.cs
- SqlDataSource.cs
- FormattedTextSymbols.cs
- RetrieveVirtualItemEventArgs.cs
- mansign.cs
- FrameworkObject.cs
- FrameworkElementFactoryMarkupObject.cs
- TimeoutException.cs
- ButtonBaseAutomationPeer.cs
- Environment.cs
- WindowsRegion.cs
- CodeGenerator.cs
- Latin1Encoding.cs
- SqlSupersetValidator.cs
- DecodeHelper.cs
- ReadContentAsBinaryHelper.cs
- TextRangeEditTables.cs
- SequenceDesignerAccessibleObject.cs
- ComUdtElementCollection.cs
- CustomAttribute.cs
- Storyboard.cs
- SQLDecimalStorage.cs
- Constants.cs
- PropertyKey.cs
- WebPartActionVerb.cs