共用方式為


MicrosoftAppCredentials 建構函式

定義

多載

MicrosoftAppCredentials(String, String, HttpClient, ILogger, String)

初始化 MicrosoftAppCredentials 類別的新實例。

MicrosoftAppCredentials(String, String, String, HttpClient, ILogger, String)

初始化 MicrosoftAppCredentials 類別的新實例。

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

logger
ILogger

選擇性 ILogger 在取得和管理認證時收集遙測數據。

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

logger
ILogger

選擇性 ILogger 在取得和管理認證時收集遙測數據。

oAuthScope
String

令牌的範圍。

適用於