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.

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

public:
property CancellationToken DisposalToken {
	CancellationToken get();
}

Property Value

Type: System.Threading::CancellationToken

The token.

Return to top
Show: