Compartilhar via


IJsonTypeInfoResolver.GetTypeInfo(Type, JsonSerializerOptions) Método

Definição

Resolve um JsonTypeInfo contrato para o tipo e as opções solicitados.

public:
 System::Text::Json::Serialization::Metadata::JsonTypeInfo ^ GetTypeInfo(Type ^ type, System::Text::Json::JsonSerializerOptions ^ options);
public 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
Public Function GetTypeInfo (type As Type, options As JsonSerializerOptions) As JsonTypeInfo

Parâmetros

type
Type

Tipo a ser resolvido.

options
JsonSerializerOptions

Configuração usada ao resolver os metadados.

Retornos

JsonTypeInfo

Uma JsonTypeInfo instância que corresponde ao tipo solicitado ou null se nenhum contrato pôde ser resolvido.

Aplica-se a