Validate Method (source, schema, validationEventHandler)

Json.NET

Json.NET - Quick Starts & API Documentation Validate Method (source, schema, validationEventHandler)
NamespacesNewtonsoft.Json.SchemaExtensionsValidate(JToken, JsonSchema, ValidationEventHandler)
Validates the specified JToken.
Declaration Syntax
C# Visual Basic Visual C++
public static void Validate(
	this JToken source,
	JsonSchema schema,
	ValidationEventHandler validationEventHandler
)
<ExtensionAttribute> _
Public Shared Sub Validate ( _
	source As JToken, _
	schema As JsonSchema, _
	validationEventHandler As ValidationEventHandler _
)
[ExtensionAttribute]
public:
static void Validate(
	JToken^ source, 
	JsonSchema^ schema, 
	ValidationEventHandler^ validationEventHandler
)
Parameters
source (JToken)
The source JToken to test.
schema (JsonSchema)
The schema to test with.
validationEventHandler (ValidationEventHandler)
The validation event handler.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type JToken. When you use instance method syntax to call this method, omit the first parameter.

Assembly: Newtonsoft.Json (Module: Newtonsoft.Json) Version: 4.0.2.0 (4.0.2.13623)