Utf8JsonReader.GetInt16 方法

定義

從來源剖析目前的 JSON 權杖值作為 Int16

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

傳回

剖析為 Int16 的 UTF-8 編碼權杖值。

例外狀況

JSON 權杖的值不是 Number

JSON 權杖值的數值格式不正確 (例如,它包含小數值或以科學記號標記法撰寫)。

-或-

JSON 權杖值代表小於 Int16.MinValue 或大於 Int16.MaxValue的數位。

適用於

另請參閱