Dela via


TurnContext.DeleteActivityAsync Metod

Definition

Överlagringar

DeleteActivityAsync(ConversationReference, CancellationToken)

Tar bort en befintlig aktivitet.

DeleteActivityAsync(String, CancellationToken)

Tar bort en befintlig aktivitet.

DeleteActivityAsync(ConversationReference, CancellationToken)

Tar bort en befintlig aktivitet.

public System.Threading.Tasks.Task DeleteActivityAsync (Microsoft.Bot.Schema.ConversationReference conversationReference, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteActivityAsync : Microsoft.Bot.Schema.ConversationReference * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DeleteActivityAsync : Microsoft.Bot.Schema.ConversationReference * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function DeleteActivityAsync (conversationReference As ConversationReference, Optional cancellationToken As CancellationToken = Nothing) As Task

Parametrar

conversationReference
ConversationReference

Konversationen som innehåller aktiviteten som ska tas bort.

cancellationToken
CancellationToken

Annulleringstoken.

Returer

En uppgift som representerar det arbete som ska köras i kö.

Implementeringar

Undantag

HTTP-åtgärden misslyckades och svaret innehöll ytterligare information.

Kommentarer

Konversationsreferensen anger ActivityId aktiviteten i konversationen som ska tas bort.

Gäller för

DeleteActivityAsync(String, CancellationToken)

Tar bort en befintlig aktivitet.

public System.Threading.Tasks.Task DeleteActivityAsync (string activityId, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteActivityAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DeleteActivityAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function DeleteActivityAsync (activityId As String, Optional cancellationToken As CancellationToken = Nothing) As Task

Parametrar

activityId
String

ID för aktiviteten som ska tas bort.

cancellationToken
CancellationToken

Annulleringstoken.

Returer

En uppgift som representerar det arbete som ska köras i kö.

Implementeringar

Undantag

HTTP-åtgärden misslyckades och svaret innehöll ytterligare information.

Gäller för