Язык

JsonSerializerContext.IJsonTypeInfoResolver.GetTypeInfo Метод

Определение

JsonTypeInfo Разрешает контракт для запрошенного типа и параметров.

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

Параметры

type
Type

Тип, который необходимо разрешить.

options
JsonSerializerOptions

Конфигурация, используемая при разрешении метаданных.

Возвращаемое значение

JsonTypeInfo Экземпляр, соответствующий запрошенным типу, или null если контракт не может быть разрешен.

Реализации

Применяется к