Compartir a través de


ConversationsExtensions.UpdateActivityAsync Método

Definición

Sobrecargas

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

Actualizar una actividad en una conversación 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

Devoluciones

Se aplica a

UpdateActivityAsync(IConversations, Activity, CancellationToken)

Actualizar una actividad en una conversación 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

Grupo de operaciones para este método de extensión.

activity
Activity

Actividad que se va a actualizar.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Tarea Task que representa la operación asincrónica.

Se aplica 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

Devoluciones

Se aplica 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

Grupo de operaciones para este método de extensión.

conversationId
String

Identificador de conversación.

activityId
String

activityId que se va a actualizar.

activity
Activity

actividad de reemplazo.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

El parámetro de cadena de consulta ResourceResponse.

Comentarios

Edite una actividad existente.

Algunos canales le permiten modificar una actividad existente para reflejar el nuevo estado de una conversación de bot.

Por ejemplo, puede quitar botones después de que alguien haya clic en el botón "Aprobar".

Se aplica a