Language

MessageSubmitActionHandler Delegate

Definition

Delegate for handling message submit action invoke activities.

public delegate System.Threading.Tasks.Task<Microsoft.Teams.Apps.InvokeResponse> MessageSubmitActionHandler(Context<InvokeActivity<SubmitActionValue>> context, CancellationToken cancellationToken = default);
type MessageSubmitActionHandler = delegate of Context<InvokeActivity<SubmitActionValue>> * CancellationToken -> Task<InvokeResponse>
Public Delegate Function MessageSubmitActionHandler(context As Context(Of InvokeActivity(Of SubmitActionValue)), Optional cancellationToken As CancellationToken = Nothing) As Task(Of InvokeResponse) 

Parameters

context
Context<InvokeActivity<SubmitActionValue>>

The context for the invoke activity, providing access to the activity data and bot application.

cancellationToken
CancellationToken

A cancellation token that can be used to cancel the operation.

Return Value

A task that represents the asynchronous operation. The task result contains the invoke response.

Applies to