SearchHandler 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 Adaptive Card dynamic search events.
public delegate System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Agents.Builder.App.AdaptiveCards.AdaptiveCardsSearchResult>> SearchHandler(ITurnContext turnContext, ITurnState turnState, Query<AdaptiveCardsSearchParams> query, CancellationToken cancellationToken);
type SearchHandler = delegate of ITurnContext * ITurnState * Query<AdaptiveCardsSearchParams> * CancellationToken -> Task<IList<AdaptiveCardsSearchResult>>
Public Delegate Function SearchHandler(turnContext As ITurnContext, turnState As ITurnState, query As Query(Of AdaptiveCardsSearchParams), cancellationToken As CancellationToken) As Task(Of IList(Of AdaptiveCardsSearchResult))
Parameters
- turnContext
- ITurnContext
A strongly-typed context object for this turn.
- turnState
- ITurnState
The turn state object that stores arbitrary data for this turn.
- query
- Query<AdaptiveCardsSearchParams>
The query arguments.
- cancellationToken
- CancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Return Value
A list of AdaptiveCardsSearchResult.