Share via


TextAnalyticsModelFactory.TextAnalyticsError(String, String, String) Method

Definition

Initializes a new instance of TextAnalyticsError for mocking purposes.

public static Azure.AI.TextAnalytics.TextAnalyticsError TextAnalyticsError (string code, string message, string target = default);
static member TextAnalyticsError : string * string * string -> Azure.AI.TextAnalytics.TextAnalyticsError
Public Shared Function TextAnalyticsError (code As String, message As String, Optional target As String = Nothing) As TextAnalyticsError

Parameters

code
String

Sets the ErrorCode property.

message
String

Sets the Message property.

target
String

Sets the Target property.

Returns

A new instance of TextAnalyticsError for mocking purposes.

Applies to