HtmlWidgetHelpers.BuildHtmlWidgetMessage 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.
Builds a message activity containing an HTML widget, ready to be sent.
The widget HTML is sent as authored, so the widget owns the ui/initialize handshake and the ui/notifications/size-changed reporting.
public static Microsoft.Teams.Apps.MessageActivityInput BuildHtmlWidgetMessage(Microsoft.Teams.Apps.HtmlWidget.HtmlWidgetPayload payload, Microsoft.Teams.Apps.HtmlWidget.HtmlWidgetMarkdownOptions? options = default);
static member BuildHtmlWidgetMessage : Microsoft.Teams.Apps.HtmlWidget.HtmlWidgetPayload * Microsoft.Teams.Apps.HtmlWidget.HtmlWidgetMarkdownOptions -> Microsoft.Teams.Apps.MessageActivityInput
Public Shared Function BuildHtmlWidgetMessage (payload As HtmlWidgetPayload, Optional options As HtmlWidgetMarkdownOptions = Nothing) As MessageActivityInput
Parameters
- payload
- HtmlWidgetPayload
The widget payload to include in the message.
- options
- HtmlWidgetMarkdownOptions
Optional text to include before/after the widget block.
Returns
A MessageActivityInput with TextFormat set to "extendedmarkdown".