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

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


Utf8JsonReader.GetComment Method

Definition

Parses the current JSON token value from the source as a comment and transcodes it as a String.

C#
public string GetComment();

Returns

The comment that represents the current JSON token value.

Exceptions

The JSON token is not a comment.

Remarks

This is only applicable when the reader is constructed using the Allow option. Otherwise, the TokenType will never be Comment.

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)

See also