JsonMetadataServices.CreateObjectInfo<T> Método

Definição

Cria metadados para uma classe ou estrutura complexa.

public:
generic <typename T>
 static System::Text::Json::Serialization::Metadata::JsonTypeInfo<T> ^ CreateObjectInfo(System::Text::Json::JsonSerializerOptions ^ options, System::Text::Json::Serialization::Metadata::JsonObjectInfoValues<T> ^ objectInfo);
public static System.Text.Json.Serialization.Metadata.JsonTypeInfo<T> CreateObjectInfo<T>(System.Text.Json.JsonSerializerOptions options, System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<T> objectInfo);
static member CreateObjectInfo : System.Text.Json.JsonSerializerOptions * System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<'T> -> System.Text.Json.Serialization.Metadata.JsonTypeInfo<'T>
Public Shared Function CreateObjectInfo(Of T) (options As JsonSerializerOptions, objectInfo As JsonObjectInfoValues(Of T)) As JsonTypeInfo(Of T)

Parâmetros de Tipo Genérico

T

O tipo da classe ou struct.

Parâmetros

options
JsonSerializerOptions

A JsonSerializerOptions usar para serialização e desserialização.

objectInfo
JsonObjectInfoValues<T>

Fornece metadados de serialização sobre um tipo de objeto com construtores, propriedades e campos.

Devoluções

Uma JsonTypeInfo<T> instância que representa a classe ou struct.

Exceções

options ou objectInfo é null.

Observações

Esta API destina-se à saída do gerador de fonte System.Text.Json e não deve ser chamada diretamente.

Aplica-se a