MessageExtensions<TState>.OnQueryLink Method

Definition

Registers a handler that implements a Link Unfurling based Message Extension.

public Microsoft.Teams.AI.Application<TState> OnQueryLink(Microsoft.Teams.AI.QueryLinkHandlerAsync<TState> handler);
member this.OnQueryLink : Microsoft.Teams.AI.QueryLinkHandlerAsync<'State (requires 'State :> Microsoft.Teams.AI.State.TurnState and 'State : (new : unit -> 'State))> -> Microsoft.Teams.AI.Application<'State (requires 'State :> Microsoft.Teams.AI.State.TurnState and 'State : (new : unit -> 'State))>
Public Function OnQueryLink (handler As QueryLinkHandlerAsync(Of TState)) As Application(Of TState)

Parameters

handler
QueryLinkHandlerAsync<TState>

Function to call when the event is triggered.

Returns

The application instance for chaining purposes.

Applies to