C# Class Newtonsoft.Json.Schema.JsonSchema

Afficher le fichier Open project: JamesNK/Newtonsoft.Json Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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 méthode

Initializes a new instance of the JsonSchema class.
public JsonSchema ( ) : System
Résultat System

Parse() public static méthode

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

Parse() public static méthode

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.
Résultat JsonSchema

Read() public static méthode

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

Read() public static méthode

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.
Résultat JsonSchema

ToString() public méthode

Returns a String that represents the current Object.
public ToString ( ) : string
Résultat string

WriteTo() public méthode

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

WriteTo() public méthode

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.
Résultat void