WorkflowControlClient.Cancel(Guid) Methode

Definitie

Hiermee wordt het opgegeven werkstroomexemplaren geannuleerd.

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

Parameters

instanceId
Guid

Het werkstroomexemplaren dat moet worden geannuleerd.

Voorbeelden

In het volgende voorbeeld ziet u hoe u een werkstroomexemplaren kunt annuleren met de 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.Unsuspend(instanceId);
// ...
controlClient.Cancel(instanceId);

Van toepassing op