VsTaskLibraryHelper::ApplyCancellationToken Method (IVsTask^, CancellationToken)
Visual Studio 2015
Signals a Visual Studio task to cancel operations as soon as possible when the specified token is canceled.
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.
Show: