TeamsActivityHandler.OnTeamsMessagingExtensionSelectItemAsync Method

Definition

Invoked when a messaging extension select item activity is received from the connector.

protected virtual System.Threading.Tasks.Task<Microsoft.Bot.Schema.Teams.MessagingExtensionResponse> OnTeamsMessagingExtensionSelectItemAsync (Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> turnContext, Newtonsoft.Json.Linq.JObject query, System.Threading.CancellationToken cancellationToken);
abstract member OnTeamsMessagingExtensionSelectItemAsync : Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> * Newtonsoft.Json.Linq.JObject * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.Teams.MessagingExtensionResponse>
override this.OnTeamsMessagingExtensionSelectItemAsync : Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> * Newtonsoft.Json.Linq.JObject * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.Teams.MessagingExtensionResponse>
Protected Overridable Function OnTeamsMessagingExtensionSelectItemAsync (turnContext As ITurnContext(Of IInvokeActivity), query As JObject, cancellationToken As CancellationToken) As Task(Of MessagingExtensionResponse)

Parameters

turnContext
ITurnContext<IInvokeActivity>

A strongly-typed context object for this turn.

query
Newtonsoft.Json.Linq.JObject

The object representing the query.

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

The Messaging Extension Response for the query.

Applies to