语言

JsonElement.GetInt32 方法

定义

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

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

返回

当前 JSON 编号作为一个 Int32。

例外

该值不能表示为 .Int32

JsonDocument父级已被释放。

适用于