Freigeben über


ConversationsExtensions.UpdateActivityAsync Methode

Definition

Überlädt

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

Aktualisieren einer Aktivität in einer vorhandenen Unterhaltung.

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)

Parameter

operations
IConversations
activity
Activity
cancellationToken
CancellationToken

Gibt zurück

Gilt für:

UpdateActivityAsync(IConversations, Activity, CancellationToken)

Aktualisieren einer Aktivität in einer vorhandenen Unterhaltung.

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)

Parameter

operations
IConversations

Die Vorgangsgruppe für diese Erweiterungsmethode.

activity
Activity

Zu aktualisierende Aktivität.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Eine Task, die den asynchronen Vorgang darstellt

Gilt für:

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)

Parameter

operations
IConversations
conversationId
String
activityId
String
activity
Activity
cancellationToken
CancellationToken

Gibt zurück

Gilt für:

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)

Parameter

operations
IConversations

Die Vorgangsgruppe für diese Erweiterungsmethode.

conversationId
String

Konversations-ID.

activityId
String

Zu aktualisierende activityId.

activity
Activity

ersetzungsaktivität.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Das ResourceResponse.

Hinweise

Bearbeiten Sie eine vorhandene Aktivität.

Einige Kanäle ermöglichen das Bearbeiten einer vorhandenen Aktivität, um den neuen Zustand einer Botunterhaltung widerzuspiegeln.

Beispielsweise können Sie Schaltflächen entfernen, nachdem jemand auf die Schaltfläche "Genehmigen" geklickt hat.

Gilt für: