Click or drag to resize
Json.NET

ValidationEventArgs Class

 

Note: This API is now obsolete.

Returns detailed information related to the ValidationEventHandler.

Caution note Caution
JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details.
Inheritance Hierarchy
SystemObject
  SystemEventArgs
    Newtonsoft.Json.SchemaValidationEventArgs

Namespace:  Newtonsoft.Json.Schema
Assembly:  Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
[ObsoleteAttribute("JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details.")]
public class ValidationEventArgs : EventArgs

The ValidationEventArgs type exposes the following members.

Properties
  NameDescription
Public propertyException
Gets the JsonSchemaException associated with the validation error.
Public propertyMessage
Gets the text description corresponding to the validation error.
Public propertyPath
Gets the path of the JSON location where the validation error occurred.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also