SessionStateItemCollection.Dirty Property

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)

public:
virtual property bool Dirty {
	bool get () sealed;
	void set (bool value) sealed;
}
/** @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.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: