语言

Utf8JsonReader.GetBoolean 方法

定义

将源中的下一个 JSON 令牌值读取为 .Boolean

public:
 bool GetBoolean();
public bool GetBoolean();
member this.GetBoolean : unit -> bool
Public Function GetBoolean () As Boolean

返回

true如果为 TokenType ;则为 TokenTypeFalse。 falseTrue

例外

JSON 令牌的值不是布尔值(即 True 或 False)。

适用于

另请参阅