AsyncPackage.DisposalToken Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Exposes a CancellationToken that can be used to check if the package has been disposed. This can happen for async tasks that are running on a background thread when Visual Studio has started to shut down. Use ShutdownToken for an earlier indication that VS is shutting down.
public:
property System::Threading::CancellationToken DisposalToken { System::Threading::CancellationToken get(); };
public System.Threading.CancellationToken DisposalToken { get; }
member this.DisposalToken : System.Threading.CancellationToken
Public ReadOnly Property DisposalToken As CancellationToken
Property Value
The token.