Share via


TextDocument(String, String) Constructor

Definition

Initializes a new instance of TextDocument.

public TextDocument (string id, string text);
new Azure.AI.Language.QuestionAnswering.TextDocument : string * string -> Azure.AI.Language.QuestionAnswering.TextDocument
Public Sub New (id As String, text As String)

Parameters

id
String

Unique identifier for the text document.

text
String

Text contents of the document.

Exceptions

id or text is null.

Applies to