Utf8JsonReader.GetByte 方法

定义

将源中的当前 JSON 令牌值分析为 .Byte

public:
 System::Byte GetByte();
public byte GetByte();
member this.GetByte : unit -> byte
Public Function GetByte () As Byte

返回

UTF-8 编码令牌的值。

例外

JSON 令牌的值不是 Number

JSON 标记值的数值格式不正确(例如,它包含小数值或用科学表示法编写)。

-或-

JSON 标记值表示小于 Byte.MinValue 或大于 Byte.MaxValue 的数字。

适用于

另请参阅