IVsTask.AbortIfCanceled Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.