Utf8JsonReader.GetInt16 Method

Definition

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

public:
 short GetInt16();
public short GetInt16 ();
member this.GetInt16 : unit -> int16
Public Function GetInt16 () As Short

Returns

Int16

The UTF-8 encoded token value parsed to an Int16.

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

Applies to

See also