JsonElement.TryGetUInt16(UInt16) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Important
Cette API n’est pas conforme CLS.
Tente de représenter le numéro JSON actuel en tant que UInt16.
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
Paramètres
- value
- UInt16
Lorsque cette méthode est retournée, contient la valeur entière 16 bits non signée équivalente au nombre JSON actuel si la conversion a réussi, ou 0 si la conversion a échoué.
Retours
true si le nombre peut être représenté en tant que UInt16; sinon, false.
- Attributs
Exceptions
Le parent JsonDocument a été supprimé.
Remarques
Cette méthode n’analyse pas le contenu d’une valeur de chaîne JSON.