共用方式為


TextAnalysisModelFactory.DocumentWarning(WarningCode, String, String) Method

Definition

Initializes a new instance of DocumentWarning.

public static Azure.AI.Language.Text.DocumentWarning DocumentWarning (Azure.AI.Language.Text.WarningCode code = default, string message = default, string targetRef = default);
static member DocumentWarning : Azure.AI.Language.Text.WarningCode * string * string -> Azure.AI.Language.Text.DocumentWarning
Public Shared Function DocumentWarning (Optional code As WarningCode = Nothing, Optional message As String = Nothing, Optional targetRef As String = Nothing) As DocumentWarning

Parameters

code
WarningCode

Warning code.

message
String

Warning message.

targetRef
String

A JSON pointer reference indicating the target object.

Returns

A new DocumentWarning instance for mocking.

Applies to