语言

JsonElement.GetInt64 方法

定义

获取当前 JSON 编号作为一个 Int64。

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

返回

当前 JSON 编号作为一个 Int64。

例外

该值不能表示为 .Int64

JsonDocument父级已被释放。

注解

此方法不分析 JSON 字符串值的内容。

适用于