Click or drag to resize
Json.NET Schema

JsonValidatorContext.RaiseError Method (String, Object)

 
Raises a validation error.

Namespace:  Newtonsoft.Json.Schema
Assembly:  Newtonsoft.Json.Schema (in Newtonsoft.Json.Schema.dll) Version: 3.0.6
Syntax
C#
public void RaiseError(
	string message,
	Object value
)

Parameters

message
Type: System.String
The message describing the error that occurred.
value
Type: System.Object
The JSON value when the error occurred.
See Also