DelegatingTurnContext<T>.OnDeleteActivity(DeleteActivityHandler) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.