語言

JsonElement.GetInt64 方法

定義

會以 . 取得目前的 JSON 編號。Int64

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

傳回

目前的 JSON 數字為 .。Int64

例外狀況

這個值的 ValueKind 值不是 Number。

該值無法表示為 Int64。

父母 JsonDocument 已被處理掉。

備註

此方法不會解析 JSON 字串值的內容。

適用於