JsonTypeInfo.CreateJsonTypeInfo 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
| Name | Description |
|---|---|
| CreateJsonTypeInfo(Type, JsonSerializerOptions) |
빈 JsonTypeInfo 인스턴스를 만듭니다. |
| CreateJsonTypeInfo<T>(JsonSerializerOptions) |
빈 JsonTypeInfo<T> 인스턴스를 만듭니다. |
CreateJsonTypeInfo(Type, JsonSerializerOptions)
- Source:
- JsonTypeInfo.cs
- Source:
- JsonTypeInfo.cs
- Source:
- JsonTypeInfo.cs
- Source:
- JsonTypeInfo.cs
- Source:
- JsonTypeInfo.cs
- Source:
- JsonTypeInfo.cs
- Source:
- JsonTypeInfo.cs
빈 JsonTypeInfo 인스턴스를 만듭니다.
public:
static System::Text::Json::Serialization::Metadata::JsonTypeInfo ^ CreateJsonTypeInfo(Type ^ type, System::Text::Json::JsonSerializerOptions ^ options);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
public static System.Text.Json.Serialization.Metadata.JsonTypeInfo CreateJsonTypeInfo(Type type, System.Text.Json.JsonSerializerOptions options);
public static System.Text.Json.Serialization.Metadata.JsonTypeInfo CreateJsonTypeInfo(Type type, System.Text.Json.JsonSerializerOptions options);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")>]
static member CreateJsonTypeInfo : Type * System.Text.Json.JsonSerializerOptions -> System.Text.Json.Serialization.Metadata.JsonTypeInfo
static member CreateJsonTypeInfo : Type * System.Text.Json.JsonSerializerOptions -> System.Text.Json.Serialization.Metadata.JsonTypeInfo
Public Shared Function CreateJsonTypeInfo (type As Type, options As JsonSerializerOptions) As JsonTypeInfo
매개 변수
- type
- Type
계약 메타데이터가 지정된 형식입니다.
- options
- JsonSerializerOptions
JsonSerializerOptions 메타데이터가 연결된 인스턴스입니다.
반품
빈 JsonTypeInfo 인스턴스입니다.
- 특성
예외
type 또는 options .입니다 null.
type 는 serialization에 사용할 수 없습니다.
설명
반환 JsonTypeInfo 되는 속성은 형식의 Converter 기본 제공 변환기에서 Converters 확인되는 속성을 제외하고 비어 있습니다. 형식 선언을 통해 JsonConverterAttribute 지정된 변환기는 이 메서드에 의해 확인되지 않습니다.
확인되는 변환기는 인스턴스에서 수정할 수 있는 메타데이터의 형식을 제한하는 값 Kind에 JsonTypeInfo 영향을 줍니다.
적용 대상
CreateJsonTypeInfo<T>(JsonSerializerOptions)
- Source:
- JsonTypeInfo.cs
- Source:
- JsonTypeInfo.cs
- Source:
- JsonTypeInfo.cs
- Source:
- JsonTypeInfo.cs
- Source:
- JsonTypeInfo.cs
- Source:
- JsonTypeInfo.cs
- Source:
- JsonTypeInfo.cs
빈 JsonTypeInfo<T> 인스턴스를 만듭니다.
public:
generic <typename T>
static System::Text::Json::Serialization::Metadata::JsonTypeInfo<T> ^ CreateJsonTypeInfo(System::Text::Json::JsonSerializerOptions ^ options);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
public static System.Text.Json.Serialization.Metadata.JsonTypeInfo<T> CreateJsonTypeInfo<T>(System.Text.Json.JsonSerializerOptions options);
public static System.Text.Json.Serialization.Metadata.JsonTypeInfo<T> CreateJsonTypeInfo<T>(System.Text.Json.JsonSerializerOptions options);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")>]
static member CreateJsonTypeInfo : System.Text.Json.JsonSerializerOptions -> System.Text.Json.Serialization.Metadata.JsonTypeInfo<'T>
static member CreateJsonTypeInfo : System.Text.Json.JsonSerializerOptions -> System.Text.Json.Serialization.Metadata.JsonTypeInfo<'T>
Public Shared Function CreateJsonTypeInfo(Of T) (options As JsonSerializerOptions) As JsonTypeInfo(Of T)
형식 매개 변수
- T
계약 메타데이터가 지정된 형식입니다.
매개 변수
- options
- JsonSerializerOptions
JsonSerializerOptions 메타데이터가 연결된 인스턴스입니다.
반품
빈 JsonTypeInfo<T> 인스턴스입니다.
- 특성
예외
options은 null입니다.
설명
반환된 <참조 cref="T:System.Text.Json.Serialization.Metadata.JsonTypeInfo'1>은 속성에서 확인 Converters 되거나 형식에 Converter 대한 기본 제공 변환기를 제외하고 비어 있습니다. 형식 선언을 통해 JsonConverterAttribute 지정된 변환기는 이 메서드에 의해 확인되지 않습니다.
확인되는 변환기는 인스턴스에서 수정할 수 있는 메타데이터의 형식을 제한하는 값 Kind에 JsonTypeInfo 영향을 줍니다.