Share via


MicrosoftBotIdentifier Constructor

Definition

Initializes a new instance of 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)

Parameters

botId
String

Id of the Microsoft bot. The unique Microsoft app ID for the bot as registered with the Bot Framework.

isResourceAccountConfigured
Boolean

Set this to true if the bot is global and resource account is configured. If not provided, the default value will be true.

cloud
Nullable<CommunicationCloudEnvironment>

The cloud that the Microsoft bot belongs to. A null value translates to the Public cloud.

Exceptions

Thrown when the botId is null.

Thrown when the botId is empty.

Applies to