C# Class Newtonsoft.Json.Schema.Extensions

Contains the JSON schema extension methods.
Afficher le fichier Open project: shevkoplyas/tradelink.afterlife

Méthodes publiques

Méthode Description
IsValid ( JToken source, JsonSchema schema ) : bool

Determines whether the JToken is valid.

IsValid ( JToken source, JsonSchema schema, IList &errorMessages ) : bool

Determines whether the JToken is valid.

Validate ( JToken source, JsonSchema schema ) : void

Validates the specified JToken.

Validate ( JToken source, JsonSchema schema, ValidationEventHandler validationEventHandler ) : void

Validates the specified JToken.

Method Details

IsValid() public static méthode

Determines whether the JToken is valid.
public static IsValid ( JToken source, JsonSchema schema ) : bool
source JToken The source to test.
schema JsonSchema The schema to test with.
Résultat bool

IsValid() public static méthode

Determines whether the JToken is valid.
public static IsValid ( JToken source, JsonSchema schema, IList &errorMessages ) : bool
source JToken The source to test.
schema JsonSchema The schema to test with.
errorMessages IList When this method returns, contains any error messages generated while validating.
Résultat bool

Validate() public static méthode

Validates the specified JToken.
public static Validate ( JToken source, JsonSchema schema ) : void
source JToken The source to test.
schema JsonSchema The schema to test with.
Résultat void

Validate() public static méthode

Validates the specified JToken.
public static Validate ( JToken source, JsonSchema schema, ValidationEventHandler validationEventHandler ) : void
source JToken The source to test.
schema JsonSchema The schema to test with.
validationEventHandler ValidationEventHandler The validation event handler.
Résultat void