JsonExtensions.IsString(JToken, String) 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.
Indique si le jeton JSON donné correspond ou non à la chaîne attendue.
public static bool IsString (this Newtonsoft.Json.Linq.JToken token, string expectedValue);
static member IsString : Newtonsoft.Json.Linq.JToken * string -> bool
<Extension()>
Public Function IsString (token As JToken, expectedValue As String) As Boolean
Paramètres
- token
- Newtonsoft.Json.Linq.JToken
Jeton à contrôler.
- expectedValue
- String
Valeur de chaîne attendue.
Retours
true
si le jeton JSON donné correspond à la chaîne attendue, false
sinon.
S’applique à
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.
Azure SDK for .NET