ConversationsExtensions.SendToConversationAsync Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Overloads
SendToConversationAsync(IConversations, String, Activity, CancellationToken)
SendToConversation.
public static System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse> SendToConversationAsync (this Microsoft.Bot.Connector.IConversations operations, string conversationId, Microsoft.Bot.Schema.Activity activity, System.Threading.CancellationToken cancellationToken = default);
static member SendToConversationAsync : Microsoft.Bot.Connector.IConversations * string * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse>
<Extension()>
Public Function SendToConversationAsync (operations As IConversations, conversationId As String, activity As Activity, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResourceResponse)
Parameters
- operations
- IConversations
De bewerkingsgroep voor deze extensiemethode.
- conversationId
- String
Gespreks-id.
- activity
- Activity
Activiteit die moet worden verzonden.
- cancellationToken
- CancellationToken
Het annuleringstoken.
Retouren
De ResourceResponse.
Opmerkingen
Met deze methode kunt u een activiteit naar het einde van een gesprek verzenden.
Dit verschilt enigszins van ReplyToActivity(). * SendToConversation(conversationId): voegt de activiteit toe aan het einde van het gesprek volgens de tijdstempel of semantiek van het kanaal. * ReplyToActivity(conversationId,ActivityId): voegt de activiteit toe als een antwoord op een andere activiteit, als het kanaal dit ondersteunt. Als het kanaal geen ondersteuning biedt voor geneste antwoorden, valt ReplyToActivity terug op SendToConversation.
Gebruik ReplyToActivity bij het beantwoorden van een specifieke activiteit in het gesprek.
Gebruik SendToConversation in alle andere gevallen.
Van toepassing op
SendToConversationAsync(IConversations, String, Activity, CancellationToken)
public static System.Threading.Tasks.Task<Microsoft.Bot.Connector.ResourceResponse> SendToConversationAsync (this Microsoft.Bot.Connector.IConversations operations, string conversationId, Microsoft.Bot.Connector.Activity activity, System.Threading.CancellationToken cancellationToken = default);
static member SendToConversationAsync : Microsoft.Bot.Connector.IConversations * string * Microsoft.Bot.Connector.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.ResourceResponse>
<Extension()>
Public Function SendToConversationAsync (operations As IConversations, conversationId As String, activity As Activity, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResourceResponse)
Parameters
- operations
- IConversations
- conversationId
- String
- activity
- Activity
- cancellationToken
- CancellationToken
Retouren
Van toepassing op
SendToConversationAsync(IConversations, Activity, CancellationToken)
Een activiteit naar een gesprek verzenden.
public static System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse> SendToConversationAsync (this Microsoft.Bot.Connector.IConversations operations, Microsoft.Bot.Schema.Activity activity, System.Threading.CancellationToken cancellationToken = default);
static member SendToConversationAsync : Microsoft.Bot.Connector.IConversations * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse>
<Extension()>
Public Function SendToConversationAsync (operations As IConversations, activity As Activity, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResourceResponse)
Parameters
- operations
- IConversations
De bewerkingsgroep voor deze extensiemethode.
- activity
- Activity
Activiteit die moet worden verzonden.
- cancellationToken
- CancellationToken
Het annuleringstoken.
Retouren
Een Task die de asynchrone bewerking vertegenwoordigt.
Van toepassing op
SendToConversationAsync(IConversations, Activity, CancellationToken)
public static System.Threading.Tasks.Task<Microsoft.Bot.Connector.ResourceResponse> SendToConversationAsync (this Microsoft.Bot.Connector.IConversations operations, Microsoft.Bot.Connector.Activity activity, System.Threading.CancellationToken cancellationToken = default);
static member SendToConversationAsync : Microsoft.Bot.Connector.IConversations * Microsoft.Bot.Connector.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.ResourceResponse>
<Extension()>
Public Function SendToConversationAsync (operations As IConversations, activity As Activity, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResourceResponse)
Parameters
- operations
- IConversations
- activity
- Activity
- cancellationToken
- CancellationToken