Share via


TurnContext.DeleteActivityAsync Method

Definition

Overloads

DeleteActivityAsync(ConversationReference, CancellationToken)

Deletes an existing activity.

DeleteActivityAsync(String, CancellationToken)

Deletes an existing activity.

DeleteActivityAsync(ConversationReference, CancellationToken)

Deletes an existing activity.

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

Parameters

conversationReference
ConversationReference

The conversation containing the activity to delete.

cancellationToken
CancellationToken

Cancellation token.

Returns

A task that represents the work queued to execute.

Implements

Exceptions

The HTTP operation failed and the response contained additional information.

Remarks

The conversation reference's ActivityId indicates the activity in the conversation to delete.

Applies to

DeleteActivityAsync(String, CancellationToken)

Deletes an existing activity.

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

Parameters

activityId
String

The ID of the activity to delete.

cancellationToken
CancellationToken

Cancellation token.

Returns

A task that represents the work queued to execute.

Implements

Exceptions

The HTTP operation failed and the response contained additional information.

Applies to