ModelDataSource::SaveViewState Method ()

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

This API supports the product infrastructure and is not intended to be used directly from your code.

Saves the state of the control.

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

virtual Object^ SaveViewState()

Return Value

Type: System::Object^

Returns the control's current view state; otherwise, returns null, if there is no view state associated with the control.

.NET Framework
Available since 4.5
Return to top