QueryLinkHandlerAsync<TState> Delegate

Definition

Function for handling Message Extension link unfurling events.

public delegate System.Threading.Tasks.Task<Microsoft.Bot.Schema.Teams.MessagingExtensionResult> QueryLinkHandlerAsync<TState>(ITurnContext turnContext, TState turnState, string url, CancellationToken cancellationToken) where TState : TurnState;
type QueryLinkHandlerAsync<'State (requires 'State :> TurnState)> = delegate of ITurnContext * 'State * string * CancellationToken -> Task<MessagingExtensionResult>
Public Delegate Function QueryLinkHandlerAsync(Of TState)(turnContext As ITurnContext, turnState As TState, url As String, cancellationToken As CancellationToken) As Task(Of MessagingExtensionResult) 

Type Parameters

TState

Type of the turn state. This allows for strongly typed access to the turn state.

Parameters

turnContext
ITurnContext

A strongly-typed context object for this turn.

turnState
TState

The turn state object that stores arbitrary data for this turn.

url
String

The URL that should be unfurled.

cancellationToken
CancellationToken

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

Return Value

An instance of MessagingExtensionResult.

Applies to