Freigeben über


MessageExtension.OnSelectItem(SelectItemHandlerAsync) Method

Definition

Registers a handler that implements the logic to handle the tap actions for items returned by a Search based message extension. <remarks> The composeExtension/selectItem INVOKE activity does not contain any sort of command ID, so only a single select item handler can be registered. Developers will need to include a type name of some sort in the preview item they return if they need to support multiple select item handlers. </remarks>>

public Microsoft.Agents.Builder.App.AgentApplication OnSelectItem(Microsoft.Agents.Extensions.Teams.App.MessageExtensions.SelectItemHandlerAsync handler);
member this.OnSelectItem : Microsoft.Agents.Extensions.Teams.App.MessageExtensions.SelectItemHandlerAsync -> Microsoft.Agents.Builder.App.AgentApplication
Public Function OnSelectItem (handler As SelectItemHandlerAsync) As AgentApplication

Parameters

handler
SelectItemHandlerAsync

Function to call when the event is triggered.

Returns

The application instance for chaining purposes.

Applies to