WorkflowControlClient.AbandonAsync Method

Definition

Begins an asynchronous operation that abandons the specified workflow instance.

Overloads

AbandonAsync(Guid)

Begins an asynchronous operation that abandons the specified workflow instance.

AbandonAsync(Guid, Object)

Begins an asynchronous operation that abandons the specified workflow instance with the specified user-defined data.

AbandonAsync(Guid, String)

Begins an asynchronous operation that abandons the specified workflow instance with the specified reason.

AbandonAsync(Guid, String, Object)

Begins an asynchronous operation that abandons the specified workflow instance with the specified reason and user-defined data.

AbandonAsync(Guid)

Begins an asynchronous operation that abandons the specified workflow instance.

C#
public void AbandonAsync(Guid instanceId);

Parameters

instanceId
Guid

The workflows instance to abandon.

Remarks

This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as ArgumentException, are still thrown synchronously. For the stored exceptions, see the exceptions thrown by Abandon(Guid).

Applies to

.NET Framework 4.8.1 i inne wersje
Produkt Wersje
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

AbandonAsync(Guid, Object)

Begins an asynchronous operation that abandons the specified workflow instance with the specified user-defined data.

C#
public void AbandonAsync(Guid instanceId, object userState);

Parameters

instanceId
Guid

The workflow instance to abandon.

userState
Object

The user-defined state data.

Applies to

.NET Framework 4.8.1 i inne wersje
Produkt Wersje
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

AbandonAsync(Guid, String)

Begins an asynchronous operation that abandons the specified workflow instance with the specified reason.

C#
public void AbandonAsync(Guid instanceId, string reason);

Parameters

instanceId
Guid

The workflow instance to abandon.

reason
String

The reason to abandon the workflow instance.

Remarks

This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as ArgumentException, are still thrown synchronously. For the stored exceptions, see the exceptions thrown by Abandon(Guid, String).

Applies to

.NET Framework 4.8.1 i inne wersje
Produkt Wersje
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

AbandonAsync(Guid, String, Object)

Begins an asynchronous operation that abandons the specified workflow instance with the specified reason and user-defined data.

C#
public void AbandonAsync(Guid instanceId, string reason, object userState);

Parameters

instanceId
Guid

The workflow instance to abandon.

reason
String

The reason to abandon the workflow instance.

userState
Object

The user-defined state data.

Applies to

.NET Framework 4.8.1 i inne wersje
Produkt Wersje
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1