JsonElement.GetUInt16 Metod

Definition

Viktigt!

Detta API uppfyller inte CLS.

Hämtar det aktuella JSON-numret som en UInt16.

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

Returer

Det aktuella JSON-talet som en UInt16.

Attribut

Undantag

Värdet kan inte representeras som en UInt16.

Den överordnade JsonDocument har tagits bort.

Kommentarer

Den här metoden parsar inte innehållet i ett JSON-strängvärde.

Gäller för