語言

MicrosoftGovernmentAppCredentials 建構函式

定義

多載

MicrosoftGovernmentAppCredentials(String, String, HttpClient, ILogger, String)

初始化 MicrosoftGovernmentAppCredentials 類別的新執行個體。

public MicrosoftGovernmentAppCredentials(string appId, string password, System.Net.Http.HttpClient customHttpClient = default, Microsoft.Extensions.Logging.ILogger logger = default, string oAuthScope = default);
new Microsoft.Bot.Connector.Authentication.MicrosoftGovernmentAppCredentials : string * string * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILogger * string -> Microsoft.Bot.Connector.Authentication.MicrosoftGovernmentAppCredentials
Public Sub New (appId As String, password As String, Optional customHttpClient As HttpClient = Nothing, Optional logger As ILogger = Nothing, Optional oAuthScope As String = Nothing)

參數

appId
String

Microsoft應用程式標識碼。

password
String

Microsoft應用程式密碼。

customHttpClient
HttpClient

可選 HttpClient 用於取得代幣。

logger
ILogger

可選 ILogger 地在取得和管理憑證時收集遙測資料。

oAuthScope
String

標記的範圍(若為空則預設為 ToChannelFromBotOAuthScope )。

適用於

MicrosoftGovernmentAppCredentials(String, String, String, HttpClient, ILogger, String)

初始化 MicrosoftGovernmentAppCredentials 類別的新執行個體。

public MicrosoftGovernmentAppCredentials(string appId, string password, string channelAuthTenant, System.Net.Http.HttpClient customHttpClient = default, Microsoft.Extensions.Logging.ILogger logger = default, string oAuthScope = default);
new Microsoft.Bot.Connector.Authentication.MicrosoftGovernmentAppCredentials : string * string * string * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILogger * string -> Microsoft.Bot.Connector.Authentication.MicrosoftGovernmentAppCredentials
Public Sub New (appId As String, password As String, channelAuthTenant As String, Optional customHttpClient As HttpClient = Nothing, Optional logger As ILogger = Nothing, Optional oAuthScope As String = Nothing)

參數

appId
String

Microsoft應用程式標識碼。

password
String

Microsoft應用程式密碼。

channelAuthTenant
String

自選。 oauth 令牌租使用者。

customHttpClient
HttpClient

可選 HttpClient 用於取得代幣。

logger
ILogger

可選 ILogger 地在取得和管理憑證時收集遙測資料。

oAuthScope
String

標記的範圍(若為空則預設為 ToChannelFromBotOAuthScope )。

適用於