TeamsActivityHandler.OnTeamsMessagingExtensionBotMessagePreviewEditAsync 方法

定义

从连接器接收消息扩展机器人消息预览编辑活动时调用。

protected virtual System.Threading.Tasks.Task<Microsoft.Bot.Schema.Teams.MessagingExtensionActionResponse> OnTeamsMessagingExtensionBotMessagePreviewEditAsync (Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> turnContext, Microsoft.Bot.Schema.Teams.MessagingExtensionAction action, System.Threading.CancellationToken cancellationToken);
abstract member OnTeamsMessagingExtensionBotMessagePreviewEditAsync : Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> * Microsoft.Bot.Schema.Teams.MessagingExtensionAction * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.Teams.MessagingExtensionActionResponse>
override this.OnTeamsMessagingExtensionBotMessagePreviewEditAsync : Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> * Microsoft.Bot.Schema.Teams.MessagingExtensionAction * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.Teams.MessagingExtensionActionResponse>
Protected Overridable Function OnTeamsMessagingExtensionBotMessagePreviewEditAsync (turnContext As ITurnContext(Of IInvokeActivity), action As MessagingExtensionAction, cancellationToken As CancellationToken) As Task(Of MessagingExtensionActionResponse)

参数

turnContext
ITurnContext<IInvokeActivity>

此轮次的强类型上下文对象。

action
MessagingExtensionAction

消息传送扩展操作。

cancellationToken
CancellationToken

可由其他对象或线程用以接收取消通知的取消标记。

返回

操作的消息传递扩展操作响应。

适用于