MicrosoftGovernmentAppCredentials 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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应用 ID。
- password
- String
Microsoft应用密码。
- customHttpClient
- HttpClient
获取令牌时要使用的可选 HttpClient。
- oAuthScope
- String
令牌的范围(默认值为 ToChannelFromBotOAuthScope(如果为 null)。
适用于
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应用 ID。
- password
- String
Microsoft应用密码。
- channelAuthTenant
- String
自选。 oauth 令牌租户。
- customHttpClient
- HttpClient
获取令牌时要使用的可选 HttpClient。
- oAuthScope
- String
令牌的范围(默认值为 ToChannelFromBotOAuthScope(如果为 null)。