JsonSchemaExporter.GetJsonSchemaAsNode 메서드

정의

오버로드

GetJsonSchemaAsNode(JsonTypeInfo, JsonSchemaExporterOptions)

JsonNode 문서로 typeInfo JSON 스키마를 가져옵니다.

GetJsonSchemaAsNode(JsonSerializerOptions, Type, JsonSchemaExporterOptions)

JsonNode 문서로 type JSON 스키마를 가져옵니다.

GetJsonSchemaAsNode(JsonTypeInfo, JsonSchemaExporterOptions)

JsonNode 문서로 typeInfo JSON 스키마를 가져옵니다.

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

매개 변수

typeInfo
JsonTypeInfo

JSON 스키마를 확인할 계약입니다.

exporterOptions
JsonSchemaExporterOptions

내보내기 작업을 제어하는 options 개체입니다.

반환

typeInfo스키마를 포함하는 JSON 개체입니다.

적용 대상

GetJsonSchemaAsNode(JsonSerializerOptions, Type, JsonSchemaExporterOptions)

JsonNode 문서로 type JSON 스키마를 가져옵니다.

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

매개 변수

options
JsonSerializerOptions

형식에 대한 계약을 선언하는 옵션입니다.

type
Type

스키마를 확인할 형식입니다.

exporterOptions
JsonSchemaExporterOptions

내보내기 작업을 제어하는 options 개체입니다.

반환

type스키마를 포함하는 JSON 개체입니다.

적용 대상