SelectItemHandlerAsync 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.Agents.Extensions.Teams.Models.MessagingExtensionResult> SelectItemHandlerAsync(ITurnContext turnContext, ITurnState turnState, object item, CancellationToken cancellationToken);
type SelectItemHandlerAsync = delegate of ITurnContext * ITurnState * obj * CancellationToken -> Task<MessagingExtensionResult>
Public Delegate Function SelectItemHandlerAsync(turnContext As ITurnContext, turnState As ITurnState, item As Object, cancellationToken As CancellationToken) As Task(Of MessagingExtensionResult)
Parameters
- turnContext
- ITurnContext
A strongly-typed context object for this turn.
- turnState
- ITurnState
The turn state object that stores arbitrary data for this turn.
- item
- Object
The item that was selected.
- 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.