ConversationsExtensions.UpdateActivityAsync Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
UpdateActivityAsync(IConversations, Activity, CancellationToken) | |
UpdateActivityAsync(IConversations, Activity, CancellationToken) |
Aggiornare un'attività in una conversazione esistente. |
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)
Parametri
- operations
- IConversations
- activity
- Activity
- cancellationToken
- CancellationToken
Restituisce
Si applica a
UpdateActivityAsync(IConversations, Activity, CancellationToken)
Aggiornare un'attività in una conversazione esistente.
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)
Parametri
- operations
- IConversations
Gruppo di operazioni per questo metodo di estensione.
- activity
- Activity
Attività da aggiornare.
- cancellationToken
- CancellationToken
Token di annullamento.
Restituisce
Task che rappresenta l'operazione asincrona.
Si applica 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)
Parametri
- operations
- IConversations
- conversationId
- String
- activityId
- String
- activity
- Activity
- cancellationToken
- CancellationToken
Restituisce
Si applica 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)
Parametri
- operations
- IConversations
Gruppo di operazioni per questo metodo di estensione.
- conversationId
- String
ID conversazione.
- activityId
- String
activityId da aggiornare.
- activity
- Activity
Attività di sostituzione.
- cancellationToken
- CancellationToken
Token di annullamento.
Restituisce
Oggetto ResourceResponse.
Commenti
Modificare un'attività esistente.
Alcuni canali consentono di modificare un'attività esistente in modo da riflettere il nuovo stato di una conversazione di bot.
Ad esempio, è possibile rimuovere i pulsanti dopo che un utente ha fatto clic sul pulsante "Approva".