Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.