JsonElement.TryGetUInt32(UInt32) Méthode

Définition

Important

Cette API n’est pas conforme CLS.

Tente de représenter le nombre JSON actuel sous la forme UInt32.

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

Paramètres

value
UInt32

Lorsque cette méthode est retournée, contient une valeur entière 32 bits non signée équivalente au numéro JSON actuel si la conversion a réussi ou 0 si la conversion a échoué.

Retours

Boolean

true si le nombre peut être représenté sous la forme UInt32 ; sinon false.

Attributs

Exceptions

Le ValueKind de cette valeur n’est pas Number.

Le JsonDocument parent a été supprimé.

Remarques

Cette méthode n’analyse pas le contenu d’une valeur de chaîne JSON.

S’applique à