Share via


TokenInfo Constructors

Definition

Overloads

TokenInfo()

Initializes a new instance of the TokenInfo class.

TokenInfo(String, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Initializes a new instance of the TokenInfo class.

TokenInfo()

Source:
TokenInfo.cs

Initializes a new instance of the TokenInfo class.

public TokenInfo ();
Public Sub New ()

Applies to

TokenInfo(String, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Source:
TokenInfo.cs

Initializes a new instance of the TokenInfo class.

public TokenInfo (string token = default, int? startOffset = default, int? endOffset = default, int? position = default);
new Microsoft.Azure.Search.Models.TokenInfo : string * Nullable<int> * Nullable<int> * Nullable<int> -> Microsoft.Azure.Search.Models.TokenInfo
Public Sub New (Optional token As String = Nothing, Optional startOffset As Nullable(Of Integer) = Nothing, Optional endOffset As Nullable(Of Integer) = Nothing, Optional position As Nullable(Of Integer) = Nothing)

Parameters

token
String

The token returned by the analyzer.

startOffset
Nullable<Int32>

The index of the first character of the token in the input text.

endOffset
Nullable<Int32>

The index of the last character of the token in the input text.

position
Nullable<Int32>

The position of the token in the input text relative to other tokens. The first token in the input text has position 0, the next has position 1, and so on. Depending on the analyzer used, some tokens might have the same position, for example if they are synonyms of each other.

Applies to