Прочетете на английски Редактиране

Споделяне чрез


Utf8JsonReader.TokenStartIndex Property

Definition

Gets the index that the last processed JSON token starts at (within the given UTF-8 encoded input text), skipping any white space.

C#
public long TokenStartIndex { get; }

Property Value

The starting index of the last processed JSON token within the given UTF-8 encoded input text.

Remarks

For JSON strings (including property names), this value points to before the start quote.

For comments, this value points to before the first comment delimiter (that is, '/'). This is only applicable when the reader is constructed using the JsonCommentHandling.Allow option.

Applies to

Продукт Версии
.NET Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)