Share via


ShellExtensibility.ShowToolWindowAsync<T> Method

Definition

Shows the tool window of the given type.

public System.Threading.Tasks.Task ShowToolWindowAsync<T> (bool activate, System.Threading.CancellationToken cancellationToken) where T : Microsoft.VisualStudio.Extensibility.ToolWindows.ToolWindow;
member this.ShowToolWindowAsync : bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task (requires 'T :> Microsoft.VisualStudio.Extensibility.ToolWindows.ToolWindow)
Public Function ShowToolWindowAsync(Of T As ToolWindow) (activate As Boolean, cancellationToken As CancellationToken) As Task

Type Parameters

T

The type of the tool window.

Parameters

activate
Boolean

Whether or not to activate the tool window during the show. Activating a tool window will move focus into it.

cancellationToken
CancellationToken

A CancellationToken to cancel the in-progress request.

Returns

A Task representing the asynchronous operation.

Applies to