Share via


ErrorContent(String) Constructor

Definition

Initializes a new instance of the ErrorContent class with the specified error message.

public:
 ErrorContent(System::String ^ message);
public ErrorContent(string? message);
new Microsoft.Extensions.AI.ErrorContent : string -> Microsoft.Extensions.AI.ErrorContent
Public Sub New (message As String)

Parameters

message
String

The error message to store in this content.

Applies to