AsyncPackage::DisposalToken Property
Visual Studio 2015
Exposes a CancellationToken that can be used to check if the package has been disposed. This can happen for asynchronous tasks that are running on a background thread when Visual Studio has started to shut down.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
Show: