ConversationsExtensions.CreateDirectConversation Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateDirectConversation(IConversations, ChannelAccount, ChannelAccount, Activity) | |
CreateDirectConversation(IConversations, ChannelAccount, ChannelAccount, Activity) |
Create a new direct conversation between a bot and a user. |
CreateDirectConversation(IConversations, String, String, Activity) | |
CreateDirectConversation(IConversations, String, String, Activity) |
Create a new direct conversation between a bot and a user. |
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
Parameters
- operations
- IConversations
- bot
- ChannelAccount
- user
- ChannelAccount
- activity
- Activity
Returns
Applies to
CreateDirectConversation(IConversations, ChannelAccount, ChannelAccount, Activity)
Create a new direct conversation between a bot and a user.
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
Parameters
- operations
- IConversations
The operations group for this extension method.
- bot
- ChannelAccount
Bot to create conversation from.
- user
- ChannelAccount
User to create conversation with.
- activity
- Activity
(OPTIONAL) initial message to send to the new conversation.
Returns
ConversationResourceResponse.
Applies to
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
Parameters
- operations
- IConversations
- botAddress
- String
- userAddress
- String
- activity
- Activity
Returns
Applies to
CreateDirectConversation(IConversations, String, String, Activity)
Create a new direct conversation between a bot and a user.
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
Parameters
- operations
- IConversations
The operations group for this extension method.
- botAddress
- String
Bot to create conversation from.
- userAddress
- String
User to create conversation with.
- activity
- Activity
(OPTIONAL) initial message to send to the new conversation.
Returns
ConversationResourceResponse.