語言

BotFrameworkAdapter.BuildCredentialsAsync(String, String) 方法

定義

邏輯用來建立 AppCredentials 一個物件,用於取得此 HttpClient 的標記。

protected virtual System.Threading.Tasks.Task<Microsoft.Bot.Connector.Authentication.AppCredentials> BuildCredentialsAsync(string appId, string oAuthScope = default);
abstract member BuildCredentialsAsync : string * string -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.Authentication.AppCredentials>
override this.BuildCredentialsAsync : string * string -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.Authentication.AppCredentials>
Protected Overridable Function BuildCredentialsAsync (appId As String, Optional oAuthScope As String = Nothing) As Task(Of AppCredentials)

參數

appId
String

應用程式識別碼。

oAuthScope
String

選擇性的 OAuth 範圍。

傳回

要用來取得令牌的應用程式認證。

適用於