TurnContext.OnUpdateActivity(UpdateActivityHandler) 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 update activity operations.
public Microsoft.Bot.Builder.ITurnContext OnUpdateActivity (Microsoft.Bot.Builder.UpdateActivityHandler handler);
abstract member OnUpdateActivity : Microsoft.Bot.Builder.UpdateActivityHandler -> Microsoft.Bot.Builder.ITurnContext
override this.OnUpdateActivity : Microsoft.Bot.Builder.UpdateActivityHandler -> Microsoft.Bot.Builder.ITurnContext
Public Function OnUpdateActivity (handler As UpdateActivityHandler) As ITurnContext
Parameters
- handler
- UpdateActivityHandler
The handler to add to the context object.
Returns
The updated context object.
Implements
Exceptions
handler
is null
.
Remarks
When the context's UpdateActivityAsync(IActivity, CancellationToken) is called, the adapter calls the registered handlers in the order in which they were added to the context object.