BotMessagePreviewEditHandlerAsync 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 botMessagePreview edit events.
public delegate System.Threading.Tasks.Task<Microsoft.Agents.Extensions.Teams.Models.MessagingExtensionActionResponse> BotMessagePreviewEditHandlerAsync(ITurnContext turnContext, ITurnState turnState, IActivity activityPreview, CancellationToken cancellationToken);
type BotMessagePreviewEditHandlerAsync = delegate of ITurnContext * ITurnState * IActivity * CancellationToken -> Task<MessagingExtensionActionResponse>
Public Delegate Function BotMessagePreviewEditHandlerAsync(turnContext As ITurnContext, turnState As ITurnState, activityPreview As IActivity, cancellationToken As CancellationToken) As Task(Of MessagingExtensionActionResponse)
Parameters
- turnContext
- ITurnContext
A strongly-typed context object for this turn.
- turnState
- ITurnState
The turn state object that stores arbitrary data for this turn.
- activityPreview
- IActivity
The activity that's being previewed by the user.
- cancellationToken
- CancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Return Value
An instance of MessagingExtensionActionResponse.