Langue

IConversations.UpdateActivityWithHttpMessagesAsync Méthode

Définition

Surcharges

UpdateActivityWithHttpMessagesAsync(String, String, Activity, Dictionary<String,List<String>>, CancellationToken)

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Connector.ResourceResponse>> UpdateActivityWithHttpMessagesAsync(string conversationId, string activityId, Microsoft.Bot.Connector.Activity activity, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateActivityWithHttpMessagesAsync : string * 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 UpdateActivityWithHttpMessagesAsync (conversationId As String, activityId 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))

Paramètres

conversationId
String
activityId
String
activity
Activity
customHeaders
Dictionary<String,List<String>>
cancellationToken
CancellationToken

Retours

Task<Microsoft.Rest.HttpOperationResponse<ResourceResponse>>

S’applique à

UpdateActivityWithHttpMessagesAsync(String, String, Activity, Dictionary<String,List<String>>, CancellationToken)

UpdateActivity.

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Schema.ResourceResponse>> UpdateActivityWithHttpMessagesAsync(string conversationId, string activityId, Microsoft.Bot.Schema.Activity activity, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateActivityWithHttpMessagesAsync : string * 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 UpdateActivityWithHttpMessagesAsync (conversationId As String, activityId 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))

Paramètres

conversationId
String

ID de conversation.

activityId
String

activityId à mettre à jour.

activity
Activity

activité de remplacement.

customHeaders
Dictionary<String,List<String>>

Les en-têtes qui seront ajoutés à la requête.

cancellationToken
CancellationToken

Jeton d’annulation.

Retours

Task<Microsoft.Rest.HttpOperationResponse<ResourceResponse>>

Une tâche qui représente le Microsoft.Rest.HttpOperationResponse.

Exceptions

Déclenché lorsque l’opération a renvoyé un code de statut invalide.

Microsoft.Rest.SerializationException

Rejeté lorsqu’il n’est pas possible de désérialiser la réponse.

Microsoft.Rest.ValidationException

Lancé lorsqu’un paramètre requis est nul.

Remarques

Modifiez une activité existante.

Certains canaux vous permettent de modifier une activité existante pour refléter le nouvel état d’une conversation de bot.

Par exemple, vous pouvez supprimer des boutons une fois que quelqu’un a cliqué sur le bouton Approuver.

S’applique à