Activity.Save Method (Stream, IFormatter)
.NET Framework 4.5
Writes the Activity to a Stream for persistence using the custom IFormatter provided for serialization.
Assembly: System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)
Parameters
- stream
- Type: System.IO.Stream
The target Stream of the save operation.
- formatter
- Type: System.Runtime.Serialization.IFormatter
The binary or custom IFormatter for the serialization.
| Exception | Condition |
|---|---|
| ArgumentNullException | stream is a null reference (Nothing in Visual Basic). |
| ArgumentNullException | formatter is a null reference (Nothing). |
| InvalidOperationException | This instance is in design mode. |
- 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, 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.