Aracılığıyla paylaş


JsonSchemaExporter.GetJsonSchemaAsNode Yöntem

Tanım

Aşırı Yüklemeler

GetJsonSchemaAsNode(JsonTypeInfo, JsonSchemaExporterOptions)

JsonNode belgesi olarak typeInfo için JSON şemasını alır.

GetJsonSchemaAsNode(JsonSerializerOptions, Type, JsonSchemaExporterOptions)

JsonNode belgesi olarak type için JSON şemasını alır.

GetJsonSchemaAsNode(JsonTypeInfo, JsonSchemaExporterOptions)

JsonNode belgesi olarak typeInfo için JSON şemasını alır.

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

Parametreler

typeInfo
JsonTypeInfo

JSON şemasının çözümlendiği sözleşme.

exporterOptions
JsonSchemaExporterOptions

Dışarı aktarma işlemini yöneten seçenekler nesnesi.

Döndürülenler

typeInfoşemasını içeren bir JSON nesnesi.

Şunlara uygulanır

GetJsonSchemaAsNode(JsonSerializerOptions, Type, JsonSchemaExporterOptions)

JsonNode belgesi olarak type için JSON şemasını alır.

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

Parametreler

options
JsonSerializerOptions

Türü için sözleşmeyi belirten seçenekler.

type
Type

Şemanın çözümlenmesi için kullanılacak tür.

exporterOptions
JsonSchemaExporterOptions

Dışarı aktarma işlemini yöneten seçenekler nesnesi.

Döndürülenler

typeşemasını içeren bir JSON nesnesi.

Şunlara uygulanır