Partager via


ConversationsExtensions.UpdateActivityAsync Méthode

Définition

Surcharges

UpdateActivityAsync(IConversations, Activity, CancellationToken)
UpdateActivityAsync(IConversations, Activity, CancellationToken)

Mettre à jour une activité dans une conversation existante.

UpdateActivityAsync(IConversations, String, String, Activity, CancellationToken)
UpdateActivityAsync(IConversations, String, String, Activity, CancellationToken)

UpdateActivity.

UpdateActivityAsync(IConversations, Activity, CancellationToken)

public static System.Threading.Tasks.Task<Microsoft.Bot.Connector.ResourceResponse> UpdateActivityAsync (this Microsoft.Bot.Connector.IConversations operations, Microsoft.Bot.Connector.Activity activity, System.Threading.CancellationToken cancellationToken = default);
static member UpdateActivityAsync : Microsoft.Bot.Connector.IConversations * Microsoft.Bot.Connector.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.ResourceResponse>
<Extension()>
Public Function UpdateActivityAsync (operations As IConversations, activity As Activity, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResourceResponse)

Paramètres

operations
IConversations
activity
Activity
cancellationToken
CancellationToken

Retours

S’applique à

UpdateActivityAsync(IConversations, Activity, CancellationToken)

Mettre à jour une activité dans une conversation existante.

public static System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse> UpdateActivityAsync (this Microsoft.Bot.Connector.IConversations operations, Microsoft.Bot.Schema.Activity activity, System.Threading.CancellationToken cancellationToken = default);
static member UpdateActivityAsync : Microsoft.Bot.Connector.IConversations * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse>
<Extension()>
Public Function UpdateActivityAsync (operations As IConversations, activity As Activity, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResourceResponse)

Paramètres

operations
IConversations

Groupe d’opérations pour cette méthode d’extension.

activity
Activity

Activité à mettre à jour.

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

Task représentant l’opération asynchrone.

S’applique à

UpdateActivityAsync(IConversations, String, String, Activity, CancellationToken)

public static System.Threading.Tasks.Task<Microsoft.Bot.Connector.ResourceResponse> UpdateActivityAsync (this Microsoft.Bot.Connector.IConversations operations, string conversationId, string activityId, Microsoft.Bot.Connector.Activity activity, System.Threading.CancellationToken cancellationToken = default);
static member UpdateActivityAsync : Microsoft.Bot.Connector.IConversations * string * string * Microsoft.Bot.Connector.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.ResourceResponse>
<Extension()>
Public Function UpdateActivityAsync (operations As IConversations, conversationId As String, activityId As String, activity As Activity, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResourceResponse)

Paramètres

operations
IConversations
conversationId
String
activityId
String
activity
Activity
cancellationToken
CancellationToken

Retours

S’applique à

UpdateActivityAsync(IConversations, String, String, Activity, CancellationToken)

UpdateActivity.

public static System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse> UpdateActivityAsync (this Microsoft.Bot.Connector.IConversations operations, string conversationId, string activityId, Microsoft.Bot.Schema.Activity activity, System.Threading.CancellationToken cancellationToken = default);
static member UpdateActivityAsync : Microsoft.Bot.Connector.IConversations * string * string * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse>
<Extension()>
Public Function UpdateActivityAsync (operations As IConversations, conversationId As String, activityId As String, activity As Activity, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResourceResponse)

Paramètres

operations
IConversations

Groupe d’opérations pour cette méthode d’extension.

conversationId
String

ID de conversation.

activityId
String

activityId à mettre à jour.

activity
Activity

activité de remplacement.

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

Le ResourceResponse.

Remarques

Modifier une activité existante.

Certains canaux vous permettent de modifier une activité existante afin de 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 à