ConversationsExtensions.CreateDirectConversation 方法

定义

重载

CreateDirectConversation(IConversations, ChannelAccount, ChannelAccount, Activity)
CreateDirectConversation(IConversations, ChannelAccount, ChannelAccount, Activity)

在机器人和用户之间创建新的直接对话。

CreateDirectConversation(IConversations, String, String, Activity)
CreateDirectConversation(IConversations, String, String, Activity)

在机器人和用户之间创建新的直接对话。

CreateDirectConversation(IConversations, ChannelAccount, ChannelAccount, Activity)

public static Microsoft.Bot.Connector.ConversationResourceResponse CreateDirectConversation (this Microsoft.Bot.Connector.IConversations operations, Microsoft.Bot.Connector.ChannelAccount bot, Microsoft.Bot.Connector.ChannelAccount user, Microsoft.Bot.Connector.Activity activity = default);
static member CreateDirectConversation : Microsoft.Bot.Connector.IConversations * Microsoft.Bot.Connector.ChannelAccount * Microsoft.Bot.Connector.ChannelAccount * Microsoft.Bot.Connector.Activity -> Microsoft.Bot.Connector.ConversationResourceResponse
<Extension()>
Public Function CreateDirectConversation (operations As IConversations, bot As ChannelAccount, user As ChannelAccount, Optional activity As Activity = Nothing) As ConversationResourceResponse

参数

operations
IConversations
activity
Activity

返回

适用于

CreateDirectConversation(IConversations, ChannelAccount, ChannelAccount, Activity)

在机器人和用户之间创建新的直接对话。

public static Microsoft.Bot.Schema.ConversationResourceResponse CreateDirectConversation (this Microsoft.Bot.Connector.IConversations operations, Microsoft.Bot.Schema.ChannelAccount bot, Microsoft.Bot.Schema.ChannelAccount user, Microsoft.Bot.Schema.Activity activity = default);
static member CreateDirectConversation : Microsoft.Bot.Connector.IConversations * Microsoft.Bot.Schema.ChannelAccount * Microsoft.Bot.Schema.ChannelAccount * Microsoft.Bot.Schema.Activity -> Microsoft.Bot.Schema.ConversationResourceResponse
<Extension()>
Public Function CreateDirectConversation (operations As IConversations, bot As ChannelAccount, user As ChannelAccount, Optional activity As Activity = Nothing) As ConversationResourceResponse

参数

operations
IConversations

此扩展方法的操作组。

bot
ChannelAccount

用于创建聊天的机器人。

user
ChannelAccount

要与之创建对话的用户。

activity
Activity

(OPTIONAL) 要发送到新对话的初始消息。

返回

ConversationResourceResponse。

适用于

CreateDirectConversation(IConversations, String, String, Activity)

public static Microsoft.Bot.Connector.ConversationResourceResponse CreateDirectConversation (this Microsoft.Bot.Connector.IConversations operations, string botAddress, string userAddress, Microsoft.Bot.Connector.Activity activity = default);
static member CreateDirectConversation : Microsoft.Bot.Connector.IConversations * string * string * Microsoft.Bot.Connector.Activity -> Microsoft.Bot.Connector.ConversationResourceResponse
<Extension()>
Public Function CreateDirectConversation (operations As IConversations, botAddress As String, userAddress As String, Optional activity As Activity = Nothing) As ConversationResourceResponse

参数

operations
IConversations
botAddress
String
userAddress
String
activity
Activity

返回

适用于

CreateDirectConversation(IConversations, String, String, Activity)

在机器人和用户之间创建新的直接对话。

public static Microsoft.Bot.Schema.ConversationResourceResponse CreateDirectConversation (this Microsoft.Bot.Connector.IConversations operations, string botAddress, string userAddress, Microsoft.Bot.Schema.Activity activity = default);
static member CreateDirectConversation : Microsoft.Bot.Connector.IConversations * string * string * Microsoft.Bot.Schema.Activity -> Microsoft.Bot.Schema.ConversationResourceResponse
<Extension()>
Public Function CreateDirectConversation (operations As IConversations, botAddress As String, userAddress As String, Optional activity As Activity = Nothing) As ConversationResourceResponse

参数

operations
IConversations

此扩展方法的操作组。

botAddress
String

用于创建聊天的机器人。

userAddress
String

要与之创建对话的用户。

activity
Activity

(OPTIONAL) 要发送到新对话的初始消息。

返回

ConversationResourceResponse。

适用于