C# Class Newtonsoft.Json.Schema.JsonSchema

Datei anzeigen Open project: JamesNK/Newtonsoft.Json Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
JsonSchema ( ) : System

Initializes a new instance of the JsonSchema class.

Parse ( string json ) : JsonSchema

Load a JsonSchema from a string that contains JSON Schema.

Parse ( string json, JsonSchemaResolver resolver ) : JsonSchema

Load a JsonSchema from a string that contains JSON Schema using the specified JsonSchemaResolver.

Read ( JsonReader reader ) : JsonSchema

Reads a JsonSchema from the specified JsonReader.

Read ( JsonReader reader, JsonSchemaResolver resolver ) : JsonSchema

Reads a JsonSchema from the specified JsonReader.

ToString ( ) : string

Returns a String that represents the current Object.

WriteTo ( JsonWriter writer ) : void

Writes this schema to a JsonWriter.

WriteTo ( JsonWriter writer, JsonSchemaResolver resolver ) : void

Writes this schema to a JsonWriter using the specified JsonSchemaResolver.

Method Details

JsonSchema() public method

Initializes a new instance of the JsonSchema class.
public JsonSchema ( ) : System
return System

Parse() public static method

Load a JsonSchema from a string that contains JSON Schema.
public static Parse ( string json ) : JsonSchema
json string A that contains JSON Schema.
return JsonSchema

Parse() public static method

Load a JsonSchema from a string that contains JSON Schema using the specified JsonSchemaResolver.
public static Parse ( string json, JsonSchemaResolver resolver ) : JsonSchema
json string A that contains JSON Schema.
resolver JsonSchemaResolver The resolver.
return JsonSchema

Read() public static method

Reads a JsonSchema from the specified JsonReader.
public static Read ( JsonReader reader ) : JsonSchema
reader JsonReader The containing the JSON Schema to read.
return JsonSchema

Read() public static method

Reads a JsonSchema from the specified JsonReader.
public static Read ( JsonReader reader, JsonSchemaResolver resolver ) : JsonSchema
reader JsonReader The containing the JSON Schema to read.
resolver JsonSchemaResolver The to use when resolving schema references.
return JsonSchema

ToString() public method

Returns a String that represents the current Object.
public ToString ( ) : string
return string

WriteTo() public method

Writes this schema to a JsonWriter.
public WriteTo ( JsonWriter writer ) : void
writer JsonWriter A into which this method will write.
return void

WriteTo() public method

Writes this schema to a JsonWriter using the specified JsonSchemaResolver.
public WriteTo ( JsonWriter writer, JsonSchemaResolver resolver ) : void
writer JsonWriter A into which this method will write.
resolver JsonSchemaResolver The resolver used.
return void