แชร์ผ่าน


ITurnContext.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
Public Function OnDeleteActivity (handler As DeleteActivityHandler) As ITurnContext

Parameters

handler
DeleteActivityHandler

The handler to add to the context object.

Returns

The updated context object.

Exceptions

handler is null.

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