SessionStateItemCollection.Dirty Property
.NET Framework 3.0
Gets or sets a value indicating whether the collection has been marked as changed.
Namespace: System.Web.SessionState
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
/** @property */ public final boolean get_Dirty () /** @property */ public final void set_Dirty (boolean value)
public final function get Dirty () : boolean public final function set Dirty (value : boolean)
Not applicable.
Property Value
true if the SessionStateItemCollection contents have been changed; otherwise, false.The Dirty property is used to indicate whether the contents of the SessionStateItemCollection collection have changed.
The Dirty property is set to true when an object value is set or added to the collection using the Item property and when one or more object values are removed from the collection using the Remove, RemoveAt, or Clear methods.
The Dirty property is also set to true when a mutable object is retrieved from the collection using the Item property.
Calling the Deserialize method to populate a SessionStateItemCollection collection results in the Dirty property being set to false.
Community Additions
ADD
Show: