Restores view-state information from a binary stream.
Assembly: System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)
restores view-state information previously saved by calling the SaveViewState method.
Override this method when you need to customize how a custom designer restores its view-state.
The following example demonstrates how to load the view state for a WorkflowView object by creating a FileStream object with the FileMode.Open flag and passing it to the method. The view state file was created using the SaveViewState method.
- 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.