语言

JsonElement.GetByte 方法

定义

获取当前 JSON 号作为一个 Byte。

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

返回

当前 JSON 编号作为一个 Byte。

例外

该值不能表示为 .Byte

JsonDocument父级已被释放。

注解

此方法不分析 JSON 字符串值的内容。

适用于