OnCardButtonClickedHandler 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 card button clicked invoke activities.
Sent when a user clicks an Action.Submit button on a message extension result card.
The activity value contains the data payload from the button.
public delegate System.Threading.Tasks.Task<Microsoft.Teams.Apps.InvokeResponse> OnCardButtonClickedHandler(Context<InvokeActivity<JsonElement>> context, CancellationToken cancellationToken = default);
type OnCardButtonClickedHandler = delegate of Context<InvokeActivity<JsonElement>> * CancellationToken -> Task<InvokeResponse>
Public Delegate Function OnCardButtonClickedHandler(context As Context(Of InvokeActivity(Of JsonElement)), Optional cancellationToken As CancellationToken = Nothing) As Task(Of InvokeResponse)
Parameters
- context
- Context<InvokeActivity<JsonElement>>
- cancellationToken
- CancellationToken