语言

JsonSchemaExporter 类

定义

使用来自 JsonTypeInfo 实例的协定元数据将.NET类型映射到 JSON 架构对象。

public ref class JsonSchemaExporter abstract sealed
public static class JsonSchemaExporter
type JsonSchemaExporter = class
Public Module JsonSchemaExporter
继承
JsonSchemaExporter

方法

名称 说明
GetJsonSchemaAsNode(JsonSerializerOptions, Type, JsonSchemaExporterOptions)

生成与指定类型的协定元数据对应的 JSON 架构。

GetJsonSchemaAsNode(JsonTypeInfo, JsonSchemaExporterOptions)

生成对应于指定协定元数据的 JSON 架构。

适用于