WorkflowInstance.Suspend(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Suspends the workflow instance.
public:
void Suspend(System::String ^ error);
public void Suspend(string error);
member this.Suspend : string -> unit
Public Sub Suspend (error As String)
Parameters
- error
- String
A description of the reason for suspending the workflow instance.
Exceptions
The workflow runtime engine is not running.
Remarks
The workflow instance is suspended in a synchronous manner. If the workflow instance is already suspended, no action is taken; otherwise, the workflow runtime engine suspends the workflow instance, raises the WorkflowSuspended event and passes reason
in a WorkflowSuspendedEventArgs.
Note
Suspend does not unload the workflow instance.