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)

abstract Values : ICollection with get
override Values : ICollection with 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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: