JsonSchemaExporter.GetJsonSchemaAsNode Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Aşırı Yüklemeler
GetJsonSchemaAsNode(JsonTypeInfo, JsonSchemaExporterOptions) |
JsonNode belgesi olarak |
GetJsonSchemaAsNode(JsonSerializerOptions, Type, JsonSchemaExporterOptions) |
JsonNode belgesi olarak |
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.