Redigera

Dela via


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

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.

Applies to

See also