IVsTask.AbortIfCanceled Method

Definition

Aborts the task if the task has been cancelled. Use this method to return from a cancelled task.

public:
 void AbortIfCanceled();
public:
 void AbortIfCanceled();
void AbortIfCanceled();
public void AbortIfCanceled ();
abstract member AbortIfCanceled : unit -> unit
Public Sub AbortIfCanceled ()

Remarks

Returns S_OK if the task is not cancelled, or returns an error code that should be returned from the task for proper cancellation.

Applies to