Json.NET Schema Documentation
Json.NET Schema Documentation
API Reference
Newtonsoft.Json.Schema
SchemaExtensions Class
SchemaExtensions Methods
Validate Method
Validate Method (JToken, JSchema)
Validate Method (JToken, JSchema, SchemaValidationEventHandler)
SchemaExtensions
Validate Method (JToken, JSchema)
Validates the specified
JToken
.
Namespace:
Newtonsoft.Json.Schema
Assembly:
Newtonsoft.Json.Schema (in Newtonsoft.Json.Schema.dll) Version: 3.0.6
Syntax
C#
Copy
public
static
void
Validate
(
this
JToken
source
,
JSchema
schema
)
Parameters
source
Type:
Newtonsoft.Json.Linq
JToken
The source
JToken
to test.
schema
Type:
Newtonsoft.Json.Schema
JSchema
The schema to test with.
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. For more information, see
Extension Methods (Visual Basic)
or
Extension Methods (C# Programming Guide)
.
See Also
Reference
SchemaExtensions Class
Validate Overload
Newtonsoft.Json.Schema Namespace
Json.NET Schema Home