Compartir a través de


JsonMetadataServices.CreatePropertyInfo<T> Método

Definición

Crea metadatos para una propiedad o campo.

public:
generic <typename T>
 static System::Text::Json::Serialization::Metadata::JsonPropertyInfo ^ CreatePropertyInfo(System::Text::Json::JsonSerializerOptions ^ options, System::Text::Json::Serialization::Metadata::JsonPropertyInfoValues<T> ^ propertyInfo);
public static System.Text.Json.Serialization.Metadata.JsonPropertyInfo CreatePropertyInfo<T> (System.Text.Json.JsonSerializerOptions options, System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<T> propertyInfo);
static member CreatePropertyInfo : System.Text.Json.JsonSerializerOptions * System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<'T> -> System.Text.Json.Serialization.Metadata.JsonPropertyInfo
Public Shared Function CreatePropertyInfo(Of T) (options As JsonSerializerOptions, propertyInfo As JsonPropertyInfoValues(Of T)) As JsonPropertyInfo

Parámetros de tipo

T

Tipo que devuelve o acepta el convertidor para la propiedad al convertir datos JSON.

Parámetros

options
JsonSerializerOptions

que JsonSerializerOptions se va a usar para la serialización y deserialización.

propertyInfo
JsonPropertyInfoValues<T>

Proporciona metadatos de serialización sobre la propiedad o el campo.

Devoluciones

JsonPropertyInfo

Instancia JsonPropertyInfo inicializada con los metadatos proporcionados.

Comentarios

Esta API la usa la salida del generador de origen System.Text.Json y no debe llamarse directamente.

Se aplica a