The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
WorkflowControlClient::Suspend Method (Guid, String^)
.NET Framework (current version)
Suspends the specified workflow instance.
Assembly: System.ServiceModel.Activities (in System.ServiceModel.Activities.dll)
Parameters
- instanceId
-
Type:
System::Guid
The workflow instance to suspend.
- reason
-
Type:
System::String^
The reason to suspend the workflow instance.
The following example shows how to suspend a workflow instance with the WorkflowControlClient.
IWorkflowCreation creationClient = new ChannelFactory<IWorkflowCreation>(new BasicHttpBinding(), "http://localhost/DataflowControl.xaml/Creation").CreateChannel(); Guid instanceId = creationClient.CreateSuspended(null); WorkflowControlClient controlClient = new WorkflowControlClient( new BasicHttpBinding(), new EndpointAddress(new Uri("http://localhost/DataflowControl.xaml"))); // ... controlClient.Suspend(instanceId, "Sample to suspend");
.NET Framework
Available since 4.0
Available since 4.0
Show: