WorkflowUpdateableControlClient.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.

AbandonAsync(Guid, String)

Begins an asynchronous operation that abandons the specified workflow instance.

AbandonAsync(Guid, String, Object)

Begins an asynchronous operation that abandons the specified workflow instance.

AbandonAsync(Guid)

Begins an asynchronous operation that abandons the specified workflow instance.

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 및 기타 버전
제품 버전
.NET Framework 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.

public void AbandonAsync(Guid instanceId, object userState);

Parameters

instanceId
Guid

The workflows instance to abandon.

userState
Object

A user-defined object that contains state information associated with the asynchronous abandon operation.

Applies to

.NET Framework 4.8.1 및 기타 버전
제품 버전
.NET Framework 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.

public void AbandonAsync(Guid instanceId, string reason);

Parameters

instanceId
Guid

The workflows 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 및 기타 버전
제품 버전
.NET Framework 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.

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

Parameters

instanceId
Guid

The workflows instance to abandon.

reason
String

The reason to abandon the workflow instance.

userState
Object

A user-defined object that contains state information associated with the asynchronous abandon operation.

Applies to

.NET Framework 4.8.1 및 기타 버전
제품 버전
.NET Framework 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