Utf8JsonReader.TryGetUInt32(UInt32) Metodo

Definizione

Importante

Questa API non è conforme a CLS.

Prova ad analizzare il valore del token JSON corrente dall'origine come oggetto UInt32 e restituisce un valore che indica se l'operazione è riuscita.

public:
 bool TryGetUInt32([Runtime::InteropServices::Out] System::UInt32 % value);
[System.CLSCompliant(false)]
public bool TryGetUInt32 (out uint value);
[<System.CLSCompliant(false)>]
member this.TryGetUInt32 : uint32 -> bool
Public Function TryGetUInt32 (ByRef value As UInteger) As Boolean

Parametri

value
UInt32

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

Restituisce

Boolean

true se l'intero valore del token con codifica UTF-8 può essere analizzato correttamente come valore UInt32. In caso contrario, false.

Attributi

Eccezioni

Il valore del token JSON non è Number.

Si applica a

Vedi anche