JsonElement.GetInt32 Método

Definición

Obtiene el número JSON actual como Int32.

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

Devoluciones

Int32

Número JSON actual como Int32.

Excepciones

El elemento ValueKind de este valor no es Number.

El valor no se puede representar como Int32.

Se ha eliminado el elemento primario JsonDocument.

Se aplica a