Utf8JsonReader.GetInt64 方法

定義

從來源讀取下一個 JSON 權杖值,並將其剖析為 Int64

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

傳回

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

例外狀況

JSON 權杖值不是 Number

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

-或-

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

適用於

另請參閱