JsonElement.GetByte 方法

定義

取得 Byte 形式的目前 JSON 數字。

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

傳回

Byte

Byte 形式的目前 JSON 數字。

例外狀況

此值不能以 Byte 表示。

JsonDocument 已經過處置。

備註

這個方法不會剖析 JSON 字串值的內容。

適用於