Utf8JsonReader.TryGetUInt16(UInt16) Metodo

Definizione

Importante

Questa API non è conforme a CLS.

Tenta di analizzare il valore corrente del token JSON dall'origine come e UInt16 restituisce un valore che indica se l'operazione è riuscita.

public:
 bool TryGetUInt16([Runtime::InteropServices::Out] System::UInt16 % value);
[System.CLSCompliant(false)]
public bool TryGetUInt16(out ushort value);
[<System.CLSCompliant(false)>]
member this.TryGetUInt16 : uint16 -> bool
Public Function TryGetUInt16 (ByRef value As UShort) As Boolean

Parametri

value
UInt16

Quando termina, questo metodo contiene il valore intero senza segno a 16 bit equivalente al numero JSON corrente se la conversione ha avuto esito positivo o 0 se la conversione non è riuscita.

Valori restituiti

true se l'intero valore del token con codifica UTF-8 può essere analizzato correttamente in un UInt16 valore; in caso contrario, false.

Attributi

Eccezioni

Il valore del token JSON non è .Number

Si applica a

Vedi anche