DelegatingTurnContext<T>.OnDeleteActivity(DeleteActivityHandler) Method

Definition

Adds a response handler for delete activity operations.

public Microsoft.Bot.Builder.ITurnContext OnDeleteActivity (Microsoft.Bot.Builder.DeleteActivityHandler handler);
abstract member OnDeleteActivity : Microsoft.Bot.Builder.DeleteActivityHandler -> Microsoft.Bot.Builder.ITurnContext
override this.OnDeleteActivity : Microsoft.Bot.Builder.DeleteActivityHandler -> Microsoft.Bot.Builder.ITurnContext
Public Function OnDeleteActivity (handler As DeleteActivityHandler) As ITurnContext

Parameters

handler
DeleteActivityHandler

The handler to add to the context object.

Returns

ITurnContext

The updated context object.

Implements

Remarks

When the context's DeleteActivityAsync(String, CancellationToken) is called, the adapter calls the registered handlers in the order in which they were added to the context object.

Applies to

See also