Share via


TurnContext.OnUpdateActivity(UpdateActivityHandler) Method

Definition

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.

Applies to