Compartir a través de


AsyncPackage.DisposalToken Property

Definition

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.

Applies to