ConversationReference 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ConversationReference()
ConversationReference(String, ChannelAccount, ChannelAccount, ConversationAccount, String, String)
初始化 ConversationReference 類別的新執行個體。
public ConversationReference (string activityId = default, Microsoft.Bot.Schema.ChannelAccount user = default, Microsoft.Bot.Schema.ChannelAccount bot = default, Microsoft.Bot.Schema.ConversationAccount conversation = default, string channelId = default, string serviceUrl = default);
new Microsoft.Bot.Schema.ConversationReference : string * Microsoft.Bot.Schema.ChannelAccount * Microsoft.Bot.Schema.ChannelAccount * Microsoft.Bot.Schema.ConversationAccount * string * string -> Microsoft.Bot.Schema.ConversationReference
Public Sub New (Optional activityId As String = Nothing, Optional user As ChannelAccount = Nothing, Optional bot As ChannelAccount = Nothing, Optional conversation As ConversationAccount = Nothing, Optional channelId As String = Nothing, Optional serviceUrl As String = Nothing)
參數
- activityId
- String
(要參考之活動的選擇性) 識別碼。
- user
- ChannelAccount
(選擇性) 參與此交談的使用者。
- bot
- ChannelAccount
參與此交談的 Bot。
- conversation
- ConversationAccount
交談參考。
- channelId
- String
通道識別碼。
- serviceUrl
- String
可能會執行有關參考交談之作業的服務端點。
適用於
ConversationReference(CultureInfo, String, ChannelAccount, ChannelAccount, ConversationAccount, String, String)
初始化 ConversationReference 類別的新執行個體。
public ConversationReference (System.Globalization.CultureInfo locale, string activityId = default, Microsoft.Bot.Schema.ChannelAccount user = default, Microsoft.Bot.Schema.ChannelAccount bot = default, Microsoft.Bot.Schema.ConversationAccount conversation = default, string channelId = default, string serviceUrl = default);
new Microsoft.Bot.Schema.ConversationReference : System.Globalization.CultureInfo * string * Microsoft.Bot.Schema.ChannelAccount * Microsoft.Bot.Schema.ChannelAccount * Microsoft.Bot.Schema.ConversationAccount * string * string -> Microsoft.Bot.Schema.ConversationReference
Public Sub New (locale As CultureInfo, Optional activityId As String = Nothing, Optional user As ChannelAccount = Nothing, Optional bot As ChannelAccount = Nothing, Optional conversation As ConversationAccount = Nothing, Optional channelId As String = Nothing, Optional serviceUrl As String = Nothing)
參數
- locale
- CultureInfo
文字欄位內容的地區設定名稱。 地區設定名稱是與語言相關聯的 ISO 639 兩個或三個字母文化特性代碼的組合,以及與國家或地區相關聯的 ISO 3166 雙字母子文化特性代碼。 地區設定名稱也可以對應至有效的 BCP-47 語言標籤。
- activityId
- String
(要參考之活動的選擇性) 識別碼。
- user
- ChannelAccount
(選擇性) 參與此交談的使用者。
- bot
- ChannelAccount
參與此交談的 Bot。
- conversation
- ConversationAccount
交談參考。
- channelId
- String
通道識別碼。
- serviceUrl
- String
可能會執行有關參考交談之作業的服務端點。