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的數位。

適用於

另請參閱