Partager via


JsonExtensions.IsString(JToken, String) Méthode

Définition

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 à