HtmlWidgetCallToolResponse.FromError(String) 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.
Creates an error response with a message.
public static Microsoft.Teams.Apps.HtmlWidget.HtmlWidgetCallToolResponse FromError(string message);
static member FromError : string -> Microsoft.Teams.Apps.HtmlWidget.HtmlWidgetCallToolResponse
Public Shared Function FromError (message As String) As HtmlWidgetCallToolResponse
Parameters
- message
- String
The error message.
Returns
A new HtmlWidgetCallToolResponse with IsError set.