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

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


Utf8JsonReader.GetByte Method

Definition

Parses the current JSON token value from the source as a Byte.

C#
public byte GetByte();

Returns

The value of the UTF-8 encoded token.

Exceptions

The value of the JSON token is not a Number.

The numeric format of the JSON token value is incorrect (for example, it contains a fractional value or is written in scientific notation).

-or-

The JSON token value represents a number less than Byte.MinValue or greater than Byte.MaxValue.

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