共用方式為


MicrosoftBotIdentifier 建構函式

定義

初始化 MicrosoftBotIdentifier 的新執行個體。

public MicrosoftBotIdentifier (string botId, bool isResourceAccountConfigured = true, Azure.Communication.CommunicationCloudEnvironment? cloud = default);
new Azure.Communication.MicrosoftBotIdentifier : string * bool * Nullable<Azure.Communication.CommunicationCloudEnvironment> -> Azure.Communication.MicrosoftBotIdentifier
Public Sub New (botId As String, Optional isResourceAccountConfigured As Boolean = true, Optional cloud As Nullable(Of CommunicationCloudEnvironment) = Nothing)

參數

botId
String

Microsoft Bot 的識別碼。 Bot 的唯一 Microsoft 應用程式識別碼,已向 Bot Framework 註冊。

isResourceAccountConfigured
Boolean

如果 Bot 是全域且已設定資源帳戶,請將此設定為 true。 如果未提供,預設值會是 true。

cloud
Nullable<CommunicationCloudEnvironment>

Microsoft Bot 所屬的雲端。 Null 值會轉譯為公用雲端。

例外狀況

當 為 null 時 botId 擲回。

當 是空的 時 botId 擲回。

適用於