SubmitActionHandler 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.
Delegate for handling Message Extension submitAction events.
public delegate System.Threading.Tasks.Task<Microsoft.Teams.Api.MessageExtensions.Response> SubmitActionHandler(ITeamsTurnContext turnContext, ITurnState turnState, Action action, CancellationToken cancellationToken);
type SubmitActionHandler = delegate of ITeamsTurnContext * ITurnState * Action * CancellationToken -> Task<Response>
Public Delegate Function SubmitActionHandler(turnContext As ITeamsTurnContext, turnState As ITurnState, action As Action, cancellationToken As CancellationToken) As Task(Of Response)
Parameters
- turnContext
- ITeamsTurnContext
The context for the current conversation turn.
- turnState
- ITurnState
The state object that stores arbitrary data for this turn.
- action
- Microsoft.Teams.Api.MessageExtensions.Action
The action data associated with the submit action.
- cancellationToken
- CancellationToken
A cancellation token that can be used to cancel the asynchronous operation.
Return Value
A task that represents the asynchronous operation. The task result contains a Response object that will be sent to the user.