Partager via


JsonExtensions.IsNumber(JToken) Méthode

Définition

Indique si le jeton JSON donné est un littéral numérique.

public static bool IsNumber (this Newtonsoft.Json.Linq.JToken token);
static member IsNumber : Newtonsoft.Json.Linq.JToken -> bool
<Extension()>
Public Function IsNumber (token As JToken) As Boolean

Paramètres

token
Newtonsoft.Json.Linq.JToken

Jeton à contrôler.

Retours

true si le jeton JSON donné représente un nombre, false sinon.

S’applique à