DefaultJsonTypeInfoResolver.GetTypeInfo(Type, JsonSerializerOptions) 메서드

정의

지정된 typeoptions 구성에 대한 JSON 계약을 확인합니다.

public:
 virtual System::Text::Json::Serialization::Metadata::JsonTypeInfo ^ GetTypeInfo(Type ^ type, System::Text::Json::JsonSerializerOptions ^ options);
public virtual System.Text.Json.Serialization.Metadata.JsonTypeInfo GetTypeInfo(Type type, System.Text.Json.JsonSerializerOptions options);
abstract member GetTypeInfo : Type * System.Text.Json.JsonSerializerOptions -> System.Text.Json.Serialization.Metadata.JsonTypeInfo
override this.GetTypeInfo : Type * System.Text.Json.JsonSerializerOptions -> System.Text.Json.Serialization.Metadata.JsonTypeInfo
Public Overridable Function GetTypeInfo (type As Type, options As JsonSerializerOptions) As JsonTypeInfo

매개 변수

type
Type

JSON 계약을 확인할 형식입니다.

options
JsonSerializerOptions

JsonSerializerOptions 계약 구성을 확인하는 데 사용되는 인스턴스입니다.

반품

JsonTypeInfo 리플렉션 파생 JSON 계약에 대한 type정의입니다.

구현

예외

type 또는 options .입니다 null.

설명

이 메서드의 기본 구현은 리플렉션 파생 계약을 생성하고 목록에서 콜백을 적용합니다 Modifiers .

적용 대상