WorkflowView::SaveViewState Method (Stream^)
.NET Framework (current version)
Saves the view-state to a binary stream.
Assembly: System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)
Parameters
- viewState
-
Type:
System.IO::Stream^
A BinaryReader used to store the view state.
View state is the accumulation of the values of the properties and child controls of a view. Property values are persisted to the stream after saving and can be restored using the LoadViewState method.
The following example demonstrates saving the view state for a WorkflowView object by creating a FileStream object using the FileMode.Create flag and passing it to the SaveViewState method. To load this view state at a later time, see LoadViewState.
.NET Framework
Available since 3.0
Available since 3.0
Show: