MessagePreviewEditHandler 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 message preview edit events.
public delegate System.Threading.Tasks.Task<Microsoft.Teams.Apps.MessageExtensions.MessageExtensionResponse> MessagePreviewEditHandler(ITeamsTurnContext turnContext, ITurnState turnState, MessageExtensionActivityPreview activityPreview, CancellationToken cancellationToken);
type MessagePreviewEditHandler = delegate of ITeamsTurnContext * ITurnState * MessageExtensionActivityPreview * CancellationToken -> Task<MessageExtensionResponse>
Public Delegate Function MessagePreviewEditHandler(turnContext As ITeamsTurnContext, turnState As ITurnState, activityPreview As MessageExtensionActivityPreview, cancellationToken As CancellationToken) As Task(Of MessageExtensionResponse)
Parameters
- turnContext
- ITeamsTurnContext
The context for the current conversation turn.
- turnState
- ITurnState
The state object that stores arbitrary data for this turn.
- activityPreview
- MessageExtensionActivityPreview
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 MessageExtensions.Response.