Export (0) Print
Expand All

Activity.Save Method (Stream, IFormatter)

Writes the Activity to a Stream for persistence using the custom IFormatter provided for serialization.

Namespace: System.Workflow.ComponentModel
Assembly: System.Workflow.ComponentModel (in system.workflow.componentmodel.dll)

public void Save (
	Stream stream,
	IFormatter formatter
public void Save (
	Stream stream, 
	IFormatter formatter
public function Save (
	stream : Stream, 
	formatter : IFormatter
Not applicable.



The target Stream of the save operation.


The binary or custom IFormatter for the serialization.

Exception typeCondition


stream is a null reference (Nothing in Visual Basic).


formatter is a null reference (Nothing).


This instance is in design mode.

Soap formatters are not supported by Windows Workflow Foundation.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

© 2014 Microsoft