Click or drag to resize
Json.NET Schema

JSchemaValidatingReader Class

 
Represents a reader that provides JSchema validation.
Inheritance Hierarchy
Newtonsoft.JsonJsonReader
  Newtonsoft.Json.SchemaJSchemaValidatingReader

Namespace:  Newtonsoft.Json.Schema
Assembly:  Newtonsoft.Json.Schema (in Newtonsoft.Json.Schema.dll) Version: 3.0.6
Syntax
C#
public class JSchemaValidatingReader : JsonReader, 
	IJsonLineInfo

The JSchemaValidatingReader type exposes the following members.

Constructors
  NameDescription
Public methodJSchemaValidatingReader
Initializes a new instance of the JSchemaValidatingReader class that validates the content returned from the given JsonReader.
Top
Properties
  NameDescription
Public propertyDepth
Gets the depth of the current token in the JSON document.
Public propertyPath
Gets the path of the current JSON token.
Public propertyQuoteChar
Gets the quotation mark character used to enclose the value of a string.
Public propertyReader
Gets the JsonReader used to construct this JSchemaValidatingReader.
Public propertyRegexMatchTimeout
Gets or sets a timeout that will be used when executing regular expressions.
Public propertySchema
Gets or sets the schema.
Public propertyTokenType
Gets the type of the current JSON token.
Public propertyValue
Gets the text value of the current JSON token.
Public propertyValueType
Gets the Common Language Runtime (CLR) type for the current JSON token.
Top
Methods
  NameDescription
Public methodClose
Changes the reader's state to Closed. If CloseInput is set to true, the underlying JsonReader is also closed.
Public methodRead
Reads the next JSON token from the stream.
Public methodReadAsBoolean
Public methodReadAsBytes
Reads the next JSON token from the stream as a Byte[].
Public methodReadAsDateTime
Public methodReadAsDateTimeOffset
Public methodReadAsDecimal
Public methodReadAsDouble
Public methodReadAsInt32
Public methodReadAsString
Reads the next JSON token from the stream as a String.
Top
Events
  NameDescription
Public eventValidationEventHandler
Sets an event handler for receiving schema validation errors.
Top
See Also