語言

JsonElement.GetByte 方法

定義

會取得目前的 JSON 編號為 Byte。

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

傳回

目前的 JSON 編號為 Byte.

例外狀況

這個值的 ValueKind 值不是 Number。

該值無法表示為 Byte。

父母 JsonDocument 已被處理掉。

備註

此方法不會解析 JSON 字串值的內容。

適用於