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
(要引用的活动的可选) ID。
- user
- ChannelAccount
(参与此对话的可选) 用户。
- bot
- ChannelAccount
参与此聊天的机器人。
- conversation
- ConversationAccount
对话引用。
- channelId
- String
通道 ID。
- 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
(要引用的活动的可选) ID。
- user
- ChannelAccount
(参与此对话的可选) 用户。
- bot
- ChannelAccount
参与此聊天的机器人。
- conversation
- ConversationAccount
对话引用。
- channelId
- String
通道 ID。
- serviceUrl
- String
可在其中执行有关引用会话的操作的服务终结点。