Utf8JsonReader.GetBoolean 方法
定义
public:
bool GetBoolean();
public bool GetBoolean ();
member this.GetBoolean : unit -> bool
Public Function GetBoolean () As Boolean
返回
如果 TokenType 为 True,则为 true;如果 TokenType 为 False,则为 false。true if the TokenType is True; false if the TokenType is False.
例外
JSON 令牌的值不是布尔值(即 True 或 False)。The value of the JSON token isn't a boolean value (that is, True or False).