다음을 통해 공유


IVsTask.AbortIfCanceled Method

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

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)

Syntax

'Declaration
Sub AbortIfCanceled
void AbortIfCanceled()
void AbortIfCanceled()
abstract AbortIfCanceled : unit -> unit
function 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.

.NET Framework Security

See Also

Reference

IVsTask Interface

Microsoft.VisualStudio.Shell.Interop Namespace