Share via


JsonElement.GetInt16 Metodo

Definizione

Ottiene il numero JSON corrente come Int16.

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

Restituisce

Int16

Numero JSON corrente come Int16.

Eccezioni

ValueKind per questo valore non è Number.

Il valore non può essere rappresentato come un Int16.

L'elemento JsonDocument padre è stato eliminato.

Si applica a