ShellExtensibility.ShowToolWindowAsync<T> 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.
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.