Utf8JsonReader.GetUInt16 Metod

Definition

Viktigt!

Detta API uppfyller inte CLS.

Parsar det aktuella JSON-tokenvärdet från källan 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 UTF-8-kodade tokenvärdet parsat till en UInt16.

Attribut

Undantag

Värdet för JSON-token är inte en Number.

Det numeriska formatet för JSON-tokenvärdet är felaktigt (till exempel innehåller det ett bråkvärde eller skrivs i vetenskaplig notation).

-eller-

JSON-tokenvärdet representerar ett tal som är mindre än UInt16.MinValue eller större än UInt16.MaxValue.

Gäller för

Se även