Jaa


TeamsActivityHandler.OnTeamsAppBasedLinkQueryAsync Method

Definition

Invoked when an app based link query activity is received from the connector.

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

Parameters

turnContext
ITurnContext<IInvokeActivity>

A strongly-typed context object for this turn.

query
AppBasedLinkQuery

The invoke request body type for app-based link 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