Saves the view-state to a binary stream.
Assembly: System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)
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 method. To load this view state at a later time, see LoadViewState.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.