語言

WorkflowControlClient.Unsuspend(Guid) 方法

定義

解除指定的工作流程實例。

public:
 void Unsuspend(Guid instanceId);
public void Unsuspend(Guid instanceId);
member this.Unsuspend : Guid -> unit
Public Sub Unsuspend (instanceId As Guid)

參數

instanceId
Guid

工作流程實例要解除暫停。

範例

以下範例展示了如何使用此 Unsuspend 方法解除工作流程實例的暫停。

IWorkflowCreation creationClient = new ChannelFactory<IWorkflowCreation>(new BasicHttpBinding(), "http://localhost/DataflowControl.xaml/Creation").CreateChannel();

// Start a new instance of the workflow
Guid instanceId = creationClient.CreateSuspended(null);
WorkflowControlClient controlClient = new WorkflowControlClient(
    new BasicHttpBinding(),
    new EndpointAddress(new Uri("http://localhost/DataflowControl.xaml")));
controlClient.Unsuspend(instanceId);

適用於