This documentation is archived and is not being maintained.

StateBag Properties

The properties of the StateBag class are listed here. For a complete list of StateBag class members, see the StateBag Members topic.

Public Properties

public propertyCount Gets the number of StateItem objects in the StateBag object.
public propertyItem Gets or sets the value of an item stored in the StateBag object.

In C#, this property is the indexer for the StateBag class.

public propertyKeys Gets a collection of keys representing the items in the StateBag object.
public propertyValues Gets a collection of the view-state values stored in the StateBag object.

See Also

StateBag Class | System.Web.UI Namespace

Show: