HtmlWidgetCallToolExtensions.OnWidgetCallTool Method
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.
Registers a handler for htmlwidget/calltool invoke activities.
Triggered when a widget calls a tool on the bot.
Cannot be combined with OnInvoke(TeamsBotApplication, InvokeHandler).
public static Microsoft.Teams.Apps.TeamsBotApplication OnWidgetCallTool(this Microsoft.Teams.Apps.TeamsBotApplication app, Microsoft.Teams.Apps.HtmlWidget.HtmlWidgetCallToolHandler handler);
static member OnWidgetCallTool : Microsoft.Teams.Apps.TeamsBotApplication * Microsoft.Teams.Apps.HtmlWidget.HtmlWidgetCallToolHandler -> Microsoft.Teams.Apps.TeamsBotApplication
<Extension()>
Public Function OnWidgetCallTool (app As TeamsBotApplication, handler As HtmlWidgetCallToolHandler) As TeamsBotApplication
Parameters
The Teams bot application.
- handler
- HtmlWidgetCallToolHandler
The handler to register.
Returns
The updated Teams bot application.