JsonElement.GetInt16 方法

定義

取得 Int16 形式的目前 JSON 數字。

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

傳回

Int16

Int16 形式的目前 JSON 數字。

例外狀況

此值不能以 Int16 表示。

JsonDocument 已經過處置。

適用於