Partilhar via


ConversationsExtensions.UpdateActivityAsync Método

Definição

Sobrecargas

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

Atualizar uma atividade numa conversação 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

Devoluções

Aplica-se a

UpdateActivityAsync(IConversations, Activity, CancellationToken)

Atualizar uma atividade numa conversação 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 este método de extensão.

activity
Activity

Atividade a atualizar.

cancellationToken
CancellationToken

O token de cancelamento.

Devoluções

Um Task que representa 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

Devoluções

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 este método de extensão.

conversationId
String

ID de Conversação.

activityId
String

activityId a atualizar.

activity
Activity

atividade de substituição.

cancellationToken
CancellationToken

O token de cancelamento.

Devoluções

O campo ResourceResponse.

Observações

Editar uma atividade existente.

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

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

Aplica-se a