IConversations.SendToConversationWithHttpMessagesAsync 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
SendToConversationWithHttpMessagesAsync(String, Activity, Dictionary<String,List<String>>, CancellationToken)
public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Connector.ResourceResponse>> SendToConversationWithHttpMessagesAsync(string conversationId, Microsoft.Bot.Connector.Activity activity, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member SendToConversationWithHttpMessagesAsync : string * Microsoft.Bot.Connector.Activity * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Connector.ResourceResponse>>
Public Function SendToConversationWithHttpMessagesAsync (conversationId As String, activity As Activity, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of ResourceResponse))
Parameters
- conversationId
- String
- activity
- Activity
- customHeaders
- Dictionary<String,List<String>>
- cancellationToken
- CancellationToken
Retouren
Van toepassing op
SendToConversationWithHttpMessagesAsync(String, Activity, Dictionary<String,List<String>>, CancellationToken)
SendToConversation.
public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Schema.ResourceResponse>> SendToConversationWithHttpMessagesAsync(string conversationId, Microsoft.Bot.Schema.Activity activity, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member SendToConversationWithHttpMessagesAsync : string * Microsoft.Bot.Schema.Activity * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Schema.ResourceResponse>>
Public Function SendToConversationWithHttpMessagesAsync (conversationId As String, activity As Activity, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of ResourceResponse))
Parameters
- conversationId
- String
Gespreks-id.
- activity
- Activity
Activiteit om te sturen.
- customHeaders
- Dictionary<String,List<String>>
De headers die op verzoek worden toegevoegd.
- cancellationToken
- CancellationToken
Het annuleringstoken.
Retouren
Een taak die de vertegenwoordigt Microsoft.Rest.HttpOperationResponse.
Uitzonderingen
Wordt gegooid wanneer de operatie een ongeldige statuscode teruggeeft.
Ze worden weggegooid als je de reactie niet kan verwoorden.
Wordt gegooid wanneer een vereiste parameter null is.
Opmerkingen
Met deze methode kunt u een activiteit verzenden naar het einde van een gesprek.
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.