JsonElement.GetUInt16 方法

定義

重要

此 API 不符合 CLS 規範。

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

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

傳回

UInt16 形式的目前 JSON 數字。

屬性

例外狀況

此值不能以 UInt16 表示。

JsonDocument 已經過處置。

備註

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

適用於