QueryLinkHandler Delegate
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.
Function for handling Message Extension link unfurling events.
public delegate System.Threading.Tasks.Task<Microsoft.Teams.Api.MessageExtensions.Response> QueryLinkHandler(ITeamsTurnContext turnContext, ITurnState turnState, AppBasedQueryLink? query, CancellationToken cancellationToken);
type QueryLinkHandler = delegate of ITeamsTurnContext * ITurnState * AppBasedQueryLink * CancellationToken -> Task<Response>
Public Delegate Function QueryLinkHandler(turnContext As ITeamsTurnContext, turnState As ITurnState, query As AppBasedQueryLink, cancellationToken As CancellationToken) As Task(Of Response)
Parameters
- turnContext
- ITeamsTurnContext
The context for the current conversation turn.
- turnState
- ITurnState
The state object that stores arbitrary data for this turn.
- query
- Microsoft.Teams.Api.AppBasedQueryLink
The AppBasedQueryLink object associated with the request.
- cancellationToken
- CancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Return Value
An instance of MessageExtensions.Response.