ChannelAccount 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| ChannelAccount() |
初始化 ChannelAccount 類別的新執行個體。 |
| ChannelAccount(String, String, String, String) |
初始化 ChannelAccount 類別的新執行個體。 |
ChannelAccount()
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) 內的物件識別碼。