SelectItemHandler<TData> 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 selecting item events.
public delegate System.Threading.Tasks.Task<Microsoft.Teams.Api.MessageExtensions.Response> SelectItemHandler<TData>(ITeamsTurnContext turnContext, ITurnState turnState, TData data, CancellationToken cancellationToken);
type SelectItemHandler<'Data> = delegate of ITeamsTurnContext * ITurnState * 'Data * CancellationToken -> Task<Response>
Public Delegate Function SelectItemHandler(Of TData)(turnContext As ITeamsTurnContext, turnState As ITurnState, data As TData, cancellationToken As CancellationToken) As Task(Of Response)
Type Parameters
- TData
The type of Activity.Value associated with the select item action. Use type object or JsonElement if unsure.
Parameters
- turnContext
- ITeamsTurnContext
The context for the current conversation turn.
- turnState
- ITurnState
The state object that stores arbitrary data for this turn.
- data
- TData
The data associated with the select item action.
- 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.