System.Web.UI.StateBag.Add Method

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.

Syntax

public StateItem Add (string key, object value)

Parameters

key
The attribute name for the System.Web.UI.StateItem.
value
The value of the item to add to the System.Web.UI.StateBag.

Returns

Returns a System.Web.UI.StateItem that represents the object added to view state.

Remarks

Documentation for this section has not yet been entered.

Requirements

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