System.Web.UI.StateBag.SetItemDirty Method

Sets the System.Web.SessionState.ISessionStateItemCollection.Dirty property for the specified System.Web.UI.StateItem object in the System.Web.UI.StateBag object.

Syntax

public void SetItemDirty (string key, bool dirty)

Parameters

key
The key that identifies which System.Web.UI.StateItem in the System.Web.UI.StateBag to set.
dirty
true to mark the state of the item as modified; otherwise, false.

Remarks

The StateBag.SetItemDirty(string, bool) method is used to prevent or force state management of specific properties, represented by System.Web.UI.StateItem objects in the System.Web.UI.StateBag collection.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0