Utf8JsonReader.GetDouble 方法

定义

从源中读取下一个 JSON 令牌值,并将该值解析为 DoubleReads the next JSON token value from the source and parses it to a Double.

public:
 double GetDouble();
public double GetDouble ();
member this.GetDouble : unit -> double
Public Function GetDouble () As Double

返回

Double

解析为 Double 的 UTF-8 编码令牌值。The UTF-8 encoded token value parsed to a Double.

例外

JSON 令牌值不是 NumberThe JSON token value isn't a Number.

JSON 令牌值表示小于 MinValue 或大于 MaxValue 的数字。The JSON token value represents a number less than MinValue or greater than MaxValue.

适用于

另请参阅