Share via


ITurnContext.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
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

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

A task that represents the work queued to execute.

Remarks

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

Not all channels support this operation. For channels that don't, this call may throw an exception.

See also

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

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

A task that represents the work queued to execute.

Remarks

Not all channels support this operation. Channels that don't, may throw an exception.

See also

Applies to