Compartilhar via


ConversationsExtensions.UpdateActivityAsync Método

Definição

Sobrecargas

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

Atualizar uma atividade em uma conversa existente.

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)

Parâmetros

operations
IConversations
activity
Activity
cancellationToken
CancellationToken

Retornos

Aplica-se a

UpdateActivityAsync(IConversations, Activity, CancellationToken)

Atualizar uma atividade em uma conversa existente.

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)

Parâmetros

operations
IConversations

O grupo de operações para esse método de extensão.

activity
Activity

Atividade a ser atualizada.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Um Task representando a operação assíncrona.

Aplica-se a

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)

Parâmetros

operations
IConversations
conversationId
String
activityId
String
activity
Activity
cancellationToken
CancellationToken

Retornos

Aplica-se a

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)

Parâmetros

operations
IConversations

O grupo de operações para esse método de extensão.

conversationId
String

ID da conversa.

activityId
String

activityId a ser atualizada.

activity
Activity

Atividade de substituição.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

O ResourceResponse.

Comentários

Editar uma atividade existente.

Alguns canais permitem editar uma atividade existente para refletir o novo estado de uma conversa de bot.

Por exemplo, você pode remover botões depois que alguém clicar no botão "Aprovar".

Aplica-se a