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