JsonSchemaExporter.GetJsonSchemaAsNode Methode

Definition

Überlädt

GetJsonSchemaAsNode(JsonTypeInfo, JsonSchemaExporterOptions)

Ruft das JSON-Schema für typeInfo als JsonNode Dokument ab.

GetJsonSchemaAsNode(JsonSerializerOptions, Type, JsonSchemaExporterOptions)

Ruft das JSON-Schema für type als JsonNode Dokument ab.

GetJsonSchemaAsNode(JsonTypeInfo, JsonSchemaExporterOptions)

Ruft das JSON-Schema für typeInfo als JsonNode Dokument ab.

public static System.Text.Json.Nodes.JsonNode GetJsonSchemaAsNode (this System.Text.Json.Serialization.Metadata.JsonTypeInfo typeInfo, System.Text.Json.Schema.JsonSchemaExporterOptions? exporterOptions = default);
static member GetJsonSchemaAsNode : System.Text.Json.Serialization.Metadata.JsonTypeInfo * System.Text.Json.Schema.JsonSchemaExporterOptions -> System.Text.Json.Nodes.JsonNode
<Extension()>
Public Function GetJsonSchemaAsNode (typeInfo As JsonTypeInfo, Optional exporterOptions As JsonSchemaExporterOptions = Nothing) As JsonNode

Parameter

typeInfo
JsonTypeInfo

Der Vertrag, aus dem das JSON-Schema aufgelöst werden soll.

exporterOptions
JsonSchemaExporterOptions

Das Optionsobjekt für den Exportvorgang.

Gibt zurück

Ein JSON-Objekt, das das Schema für typeInfoenthält.

Gilt für:

GetJsonSchemaAsNode(JsonSerializerOptions, Type, JsonSchemaExporterOptions)

Ruft das JSON-Schema für type als JsonNode Dokument ab.

public static System.Text.Json.Nodes.JsonNode GetJsonSchemaAsNode (this System.Text.Json.JsonSerializerOptions options, Type type, System.Text.Json.Schema.JsonSchemaExporterOptions? exporterOptions = default);
static member GetJsonSchemaAsNode : System.Text.Json.JsonSerializerOptions * Type * System.Text.Json.Schema.JsonSchemaExporterOptions -> System.Text.Json.Nodes.JsonNode
<Extension()>
Public Function GetJsonSchemaAsNode (options As JsonSerializerOptions, type As Type, Optional exporterOptions As JsonSchemaExporterOptions = Nothing) As JsonNode

Parameter

options
JsonSerializerOptions

Die Optionen, die den Vertrag für den Typ deklarieren.

type
Type

Der Typ, für den ein Schema aufgelöst werden soll.

exporterOptions
JsonSchemaExporterOptions

Das Optionsobjekt für den Exportvorgang.

Gibt zurück

Ein JSON-Objekt, das das Schema für typeenthält.

Gilt für: