IToolWindowProvider.CreateToolWindowAsync(String, CancellationToken) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立並初始化與指定標識符相關聯的工具視窗。
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內容。