Values Property
Collapse the table of content
Expand the table of content

StateBag.Values Property


Gets a collection of the view-state values stored in the StateBag object.

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

public ICollection Values { get; }

Property Value

Type: System.Collections.ICollection

The collection of view-state values.

This is a collection that contains the values for all the StateItem objects in the specified page or control. You can iterate through these values by using the StateBag.GetEnumerator method.

The following code example demonstrates using the Values property.

.NET Framework
Available since 1.1
Return to top
© 2015 Microsoft