语言

JsonElement.GetUInt16 方法

定义

重要

此 API 不符合 CLS。

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

public:
 System::UInt16 GetUInt16();
[System.CLSCompliant(false)]
public ushort GetUInt16();
[<System.CLSCompliant(false)>]
member this.GetUInt16 : unit -> uint16
Public Function GetUInt16 () As UShort

返回

当前 JSON 编号作为一个 UInt16。

属性

例外

该值不能表示为 .UInt16

JsonDocument父级已被释放。

注解

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

适用于