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

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


Utf8JsonReader.GetUInt64 Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Important

This API is not CLS-compliant.

Reads the next JSON token value from the source and parses it to a UInt64.

C#
[System.CLSCompliant(false)]
public ulong GetUInt64();

Returns

The UTF-8 encoded token value parsed to a UInt64.

Attributes

Exceptions

The JSON token value isn't a Number.

The JSON token value is of the incorrect numeric format. For example, it contains a decimal or is written in scientific notation.

-or-

The JSON token value represents a number less than UInt64.MinValue or greater than UInt64.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