Sets the System.Web.SessionState.ISessionStateItemCollection.Dirty property for the specified System.Web.UI.StateItem object in the System.Web.UI.StateBag object.
- 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.
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.