Click or drag to resize

ExtensionsIsValid Method (JToken, JsonSchema, IListString)

Note: This API is now obsolete.

[Missing <summary> documentation for "M:Stimulsoft.Base.Json.Schema.Extensions.IsValid(Stimulsoft.Base.Json.Linq.JToken,Stimulsoft.Base.Json.Schema.JsonSchema,System.Collections.Generic.IList{System.String}@)"]

Namespace:  Stimulsoft.Base.Json.Schema
Assembly:  Stimulsoft.Base (in Stimulsoft.Base.dll) Version: 2019.3.1.0
Syntax
[ObsoleteAttribute("JSON Schema validation has been moved to its own package. See http://www.newtonsoft.com/jsonschema for more details.")]
public static bool IsValid(
	this JToken source,
	JsonSchema schema,
	out IList<string> errorMessages
)

Parameters

source
Type: Stimulsoft.Base.Json.LinqJToken

[Missing <param name="source"/> documentation for "M:Stimulsoft.Base.Json.Schema.Extensions.IsValid(Stimulsoft.Base.Json.Linq.JToken,Stimulsoft.Base.Json.Schema.JsonSchema,System.Collections.Generic.IList{System.String}@)"]

schema
Type: Stimulsoft.Base.Json.SchemaJsonSchema

[Missing <param name="schema"/> documentation for "M:Stimulsoft.Base.Json.Schema.Extensions.IsValid(Stimulsoft.Base.Json.Linq.JToken,Stimulsoft.Base.Json.Schema.JsonSchema,System.Collections.Generic.IList{System.String}@)"]

errorMessages
Type: System.Collections.GenericIListString

[Missing <param name="errorMessages"/> documentation for "M:Stimulsoft.Base.Json.Schema.Extensions.IsValid(Stimulsoft.Base.Json.Linq.JToken,Stimulsoft.Base.Json.Schema.JsonSchema,System.Collections.Generic.IList{System.String}@)"]

Return Value

Type: Boolean

[Missing <returns> documentation for "M:Stimulsoft.Base.Json.Schema.Extensions.IsValid(Stimulsoft.Base.Json.Linq.JToken,Stimulsoft.Base.Json.Schema.JsonSchema,System.Collections.Generic.IList{System.String}@)"]

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