BotFrameworkHttpClient.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 範圍。

傳回

要用來取得權杖的應用程式認證。

適用於