Share via


IToolWindowProvider.CreateToolWindowAsync(String, CancellationToken) Method

Definition

Creates and initializes the tool window associated with the given identifier.

public System.Threading.Tasks.Task<Microsoft.VisualStudio.RpcContracts.RemoteUI.IRemoteUserControl> CreateToolWindowAsync (string identifier, System.Threading.CancellationToken cancellationToken);
abstract member CreateToolWindowAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.RpcContracts.RemoteUI.IRemoteUserControl>
Public Function CreateToolWindowAsync (identifier As String, cancellationToken As CancellationToken) As Task(Of IRemoteUserControl)

Parameters

identifier
String

The tool window's identifier.

cancellationToken
CancellationToken

A CancellationToken to cancel the in-progress initialization.

Returns

The IRemoteProxiedUserControl representing the tool window's UI content.

Applies to