MicrosoftAppCredentials 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
MicrosoftAppCredentials(String, String, HttpClient, ILogger, String)
初始化 MicrosoftAppCredentials 類別的新實例。
public MicrosoftAppCredentials (string appId, string password, System.Net.Http.HttpClient customHttpClient = default, Microsoft.Extensions.Logging.ILogger logger = default, string oAuthScope = default);
new Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials : string * string * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILogger * string -> Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials
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。
- oAuthScope
- String
令牌的範圍。
適用於
MicrosoftAppCredentials(String, String, String, HttpClient, ILogger, String)
初始化 MicrosoftAppCredentials 類別的新實例。
public MicrosoftAppCredentials (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.MicrosoftAppCredentials : string * string * string * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILogger * string -> Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials
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。
- oAuthScope
- String
令牌的範圍。