VsTaskLibraryHelper::ApplyCancellationToken Method (IVsTask^, CancellationToken)

 

Signals a Visual Studio task to cancel operations as soon as possible when the specified token is canceled.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public:
[ExtensionAttribute]
static void ApplyCancellationToken(
	IVsTask^ task,
	CancellationToken cancellationToken
)

Parameters

task
Type: Microsoft.VisualStudio.Shell.Interop::IVsTask^

The task that may be canceled.

cancellationToken
Type: System.Threading::CancellationToken

The cancellation token.

Return to top
Show: