Language

HtmlWidgetCallToolResponse.FromError(String) Method

Definition

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.

Applies to