Utf8JsonReader.GetInt32 Utf8JsonReader.GetInt32 Utf8JsonReader.GetInt32 Utf8JsonReader.GetInt32 Method


Reads the next JSON token value from the source and parses it to an Int32.

 int GetInt32();
public int GetInt32 ();
member this.GetInt32 : unit -> int
Public Function GetInt32 () As Integer


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


The JSON token value is of the incorrect numeric format. For example, if it contains a decimal or is written in scientific notation.

  • or-

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


The GetInt32 method throws an exception if the entire UTF-8 encoded token value cannnot be parsed to a Int32 value.

Applies to

See also