語言

ChannelAccount 建構函式

定義

多載

名稱 Description
ChannelAccount()

初始化 ChannelAccount 類別的新執行個體。

ChannelAccount(String, String, String, String)

初始化 ChannelAccount 類別的新執行個體。

ChannelAccount()

初始化 ChannelAccount 類別的新執行個體。

public ChannelAccount();
Public Sub New ()

適用於

ChannelAccount(String, String, String, String)

初始化 ChannelAccount 類別的新執行個體。

public ChannelAccount(string id = default, string name = default, string role = default, string aadObjectId = default);
new Microsoft.Bot.Schema.ChannelAccount : string * string * string * string -> Microsoft.Bot.Schema.ChannelAccount
Public Sub New (Optional id As String = Nothing, Optional name As String = Nothing, Optional role As String = Nothing, Optional aadObjectId As String = Nothing)

參數

id
String

此通道上使用者或 Bot 的通道識別碼(例如:joe@smith.com或 @joesmith 或 123456)。

name
String

顯示易記名稱。

role
String

帳號背後實體的角色(例如:使用者、機器人等)。 可能的值包括:『user』、『bot』。

aadObjectId
String

此帳戶在 Azure Active Directory (AAD) 內的物件識別碼。

適用於