ToolWindow.InitializeAsync(CancellationToken) Method
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.
Initializes the tool window.
public virtual System.Threading.Tasks.Task InitializeAsync (System.Threading.CancellationToken cancellationToken);
abstract member InitializeAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.InitializeAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function InitializeAsync (cancellationToken As CancellationToken) As Task
Parameters
- cancellationToken
- CancellationToken
A cancellation token to cancel the in-progress initialization.
Returns
A Task representing the asynchronous operation.
Remarks
This method is called prior to calling GetContentAsync(CancellationToken) and can be used for any work that needs to be done prior to creating the tool window's UI content.