JsonElement.GetInt32 方法

定義

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

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

傳回

Int32 形式的目前 JSON 數字。

例外狀況

此值不能以 Int32 表示。

JsonDocument 已經過處置。

適用於