共用方式為


IToolWindowProvider.CreateToolWindowAsync(String, CancellationToken) 方法

定義

建立並初始化與指定標識符相關聯的工具視窗。

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)

參數

identifier
String

工具視窗的識別碼。

cancellationToken
CancellationToken

CancellationToken 取消進行中初始化的 。

傳回

IRemoteProxiedUserControl 表示工具視窗的UI內容。

適用於