共用方式為


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);

適用於