JsonSchemaExporter.GetJsonSchemaAsNode 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
| Name | Description |
|---|---|
| GetJsonSchemaAsNode(JsonTypeInfo, JsonSchemaExporterOptions) |
지정된 계약 메타데이터에 해당하는 JSON 스키마를 생성합니다. |
| GetJsonSchemaAsNode(JsonSerializerOptions, Type, JsonSchemaExporterOptions) |
지정된 형식의 계약 메타데이터에 해당하는 JSON 스키마를 생성합니다. |
GetJsonSchemaAsNode(JsonTypeInfo, JsonSchemaExporterOptions)
- Source:
- JsonSchemaExporter.cs
- Source:
- JsonSchemaExporter.cs
- Source:
- JsonSchemaExporter.cs
- Source:
- JsonSchemaExporter.cs
지정된 계약 메타데이터에 해당하는 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
스키마를 생성할 계약 메타데이터입니다.
- exporterOptions
- JsonSchemaExporterOptions
스키마 생성을 제어하는 exporterOptions 개체입니다.
반품
에 대한 JSON 스키마를 정의하는 새 JsonNode 인스턴스입니다 typeInfo.
예외
지정된 매개 변수 중 하나는 .입니다 null.
매개 변수에는 typeInfo 지원되지 않는 exporterOptions가 포함됩니다.
적용 대상
GetJsonSchemaAsNode(JsonSerializerOptions, Type, JsonSchemaExporterOptions)
- Source:
- JsonSchemaExporter.cs
- Source:
- JsonSchemaExporter.cs
- Source:
- JsonSchemaExporter.cs
- Source:
- JsonSchemaExporter.cs
지정된 형식의 계약 메타데이터에 해당하는 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
JSON 스키마를 생성할 루트 형식입니다.
- exporterOptions
- JsonSchemaExporterOptions
스키마 생성을 제어하는 exporterOptions 개체입니다.
반품
에 대한 JSON 스키마를 정의하는 새 JsonNode 인스턴스입니다 type.
예외
지정된 매개 변수 중 하나는 .입니다 null.
매개 변수에는 options 지원되지 않는 exporterOptions가 포함됩니다.