Utf8JsonReader.GetUInt16 Metodo

Definizione

Importante

Questa API non è conforme a CLS.

Analizza il valore corrente del token JSON dall'origine come .UInt16

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

Valori restituiti

Valore del token con codifica UTF-8 analizzato in un oggetto UInt16.

Attributi

Eccezioni

Il valore del token JSON non è .Number

Il formato numerico del valore del token JSON non è corretto, ad esempio contiene un valore frazionaria o è scritto in notazione scientifica.

oppure

Il valore del token JSON rappresenta un numero minore di UInt16.MinValue o maggiore di UInt16.MaxValue.

Si applica a

Vedi anche