Utf8JsonReader.TryGetInt16(Int16) 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.
Tente d’analyser la valeur de jeton JSON actuelle de la source sous la forme d’une Int16 valeur et retourne une valeur qui indique si l’opération a réussi.
public:
bool TryGetInt16([Runtime::InteropServices::Out] short % value);
public bool TryGetInt16(out short value);
member this.TryGetInt16 : int16 -> bool
Public Function TryGetInt16 (ByRef value As Short) As Boolean
Paramètres
- value
- Int16
Lorsque cette méthode est retournée, contient la valeur entière 16 bits équivalente au nombre JSON actuel si la conversion a réussi ou 0 si la conversion a échoué.
Retours
true si la valeur de jeton encodée UTF-8 entière peut être analysée avec succès sur une Int16 valeur ; sinon, false.
Exceptions
La valeur du jeton JSON n’est pas un Number.