Utf8JsonReader.GetInt16 Method


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

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


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


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).


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

Applies to

See also