System.Web.UI.StateBag: Method Members

The methods of System.Web.UI.StateBag are listed below. For a list of all members, see the StateBag Members list.

See Also: Inherited members from System.Object

Public Methods

Add(string, object) : StateItem

Adds a new System.Web.UI.StateItem object to the System.Web.UI.StateBag object. If the item already exists in the System.Web.UI.StateBag object, this method updates the value of the item.

Clear()

Removes all items from the current System.Web.UI.StateBag object.

GetEnumerator() : IDictionaryEnumerator

Returns an enumerator that iterates over all the key/value pairs of the System.Web.UI.StateItem objects stored in the System.Web.UI.StateBag object.

IsItemDirty(string) : bool

Checks a System.Web.UI.StateItem object stored in the System.Web.UI.StateBag object to evaluate whether it has been modified since the call to Control.TrackViewState.

Remove(string)

Removes the specified key/value pair from the System.Web.UI.StateBag object.

SetDirty(bool)

Sets the state of the System.Web.UI.StateBag object as well as the System.Web.SessionState.ISessionStateItemCollection.Dirty property of each of the System.Web.UI.StateItem objects contained by it.

SetItemDirty(string, bool)

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