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.

Parameters

stream

The target Stream of the save operation.

formatter

The binary or custom IFormatter for the serialization.

Exception typeCondition

ArgumentNullException

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

ArgumentNullException

formatter is a null reference (Nothing).

InvalidOperationException

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

ADD
Show:
© 2014 Microsoft