Muokkaa

Jaa


Utf8JsonReader.GetUInt16 Method

Definition

Important

This API is not CLS-compliant.

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

public:
 System::UInt16 GetUInt16();
[System.CLSCompliant(false)]
public ushort GetUInt16 ();
[<System.CLSCompliant(false)>]
member this.GetUInt16 : unit -> uint16
Public Function GetUInt16 () As UShort

Returns

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

Attributes

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 UInt16.MinValue or greater than UInt16.MaxValue.

Applies to

See also