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 значение , если контракт не может быть разрешен.

Реализации

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