JsonElement.GetInt64 方法

定義

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

public:
 long GetInt64();
public long GetInt64 ();
member this.GetInt64 : unit -> int64
Public Function GetInt64 () As Long

傳回

Int64

Int64 形式的目前 JSON 數字。

例外狀況

此值不能以 Int64 表示。

JsonDocument 已經過處置。

備註

這個方法不會剖析 JSON 字串值的內容。

適用於