Share via


JsonMetadataServices Classe

Definição

Fornece auxiliares para criar e inicializar metadados para tipos serializáveis em JSON.

public ref class JsonMetadataServices abstract sealed
public static class JsonMetadataServices
type JsonMetadataServices = class
Public Class JsonMetadataServices
Herança
JsonMetadataServices

Comentários

Essa API destina-se ao uso pela saída do gerador de origem System.Text.Json. Ele não deve ser chamado diretamente.

Propriedades

BooleanConverter

Obtém um objeto que converte Boolean valores.

ByteArrayConverter

Obtém um objeto que converte valores de matriz de bytes.

ByteConverter

Obtém um objeto que converte Byte valores.

CharConverter

Obtém um objeto que converte Char valores.

DateOnlyConverter

Retorna uma JsonConverter<T> instância que converte DateOnly valores.

DateTimeConverter

Obtém um objeto que converte DateTime valores.

DateTimeOffsetConverter

Obtém um objeto que converte DateTimeOffset valores.

DecimalConverter

Obtém um objeto que converte Decimal valores.

DoubleConverter

Obtém um objeto que converte Double valores.

GuidConverter

Obtém um objeto que converte Guid valores.

HalfConverter

Retorna uma JsonConverter<T> instância que converte Half valores.

Int128Converter

Retorna uma JsonConverter<T> instância que converte Int128 valores.

Int16Converter

Obtém um objeto que converte Int16 valores.

Int32Converter

Obtém um objeto que converte Int32 valores.

Int64Converter

Obtém um objeto que converte Int64 valores.

JsonArrayConverter

Obtém um objeto que converte JsonArray valores.

JsonDocumentConverter

Retorna uma JsonConverter<T> instância que converte JsonDocument valores.

JsonElementConverter

Obtém um conversor JSON que converte JsonElement valores.

JsonNodeConverter

Obtém um objeto que converte JsonNode valores.

JsonObjectConverter

Obtém um objeto que converte JsonObject valores.

JsonValueConverter

Obtém um objeto que converte JsonValue valores.

MemoryByteConverter

Retorna uma JsonConverter<T> instância que converte Memory<T> valores.

ObjectConverter

Obtém um objeto que converte Object valores.

ReadOnlyMemoryByteConverter

Retorna uma JsonConverter<T> instância que converte ReadOnlyMemory<T> valores.

SByteConverter

Obtém um objeto que converte SByte valores.

SingleConverter

Obtém um objeto que converte Single valores.

StringConverter

Obtém um objeto que converte String valores.

TimeOnlyConverter

Retorna uma JsonConverter<T> instância que converte TimeOnly valores.

TimeSpanConverter

Obtém um conversor JSON que converte TimeSpan valores.

UInt128Converter

Retorna uma JsonConverter<T> instância que converte UInt128 valores.

UInt16Converter

Obtém um objeto que converte UInt16 valores.

UInt32Converter

Obtém um objeto que converte UInt32 valores.

UInt64Converter

Obtém um objeto que converte UInt64 valores.

UriConverter

Obtém um objeto que converte Uri valores.

VersionConverter

Obtém um objeto que converte Version valores.

Métodos

CreateArrayInfo<TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TElement[]>)

Cria metadados de serialização para uma matriz.

CreateConcurrentQueueInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Cria metadados para tipos atribuíveis a ConcurrentQueue<T>.

CreateConcurrentStackInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Cria metadados para tipos atribuíveis a ConcurrentStack<T>.

CreateDictionaryInfo<TCollection,TKey,TValue>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Cria metadados para tipos atribuíveis a Dictionary<TKey,TValue>.

CreateIAsyncEnumerableInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Cria metadados de serialização para tipos atribuíveis a IAsyncEnumerable<T>.

CreateICollectionInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Cria metadados para tipos atribuíveis a ICollection<T>.

CreateIDictionaryInfo<TCollection,TKey,TValue>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Cria metadados para tipos atribuíveis a IDictionary<TKey,TValue>.

CreateIDictionaryInfo<TCollection>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Cria metadados para tipos atribuíveis a IDictionary.

CreateIEnumerableInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Cria metadados para tipos atribuíveis a IEnumerable<T>.

CreateIEnumerableInfo<TCollection>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Cria metadados para tipos atribuíveis a IEnumerable.

CreateIListInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Cria metadados para tipos atribuíveis a IList<T>.

CreateIListInfo<TCollection>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Cria metadados para tipos atribuíveis a IList.

CreateImmutableDictionaryInfo<TCollection,TKey,TValue>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>, Func<IEnumerable<KeyValuePair<TKey, TValue>>,TCollection>)

Cria metadados para ImmutableDictionary<TKey,TValue> os tipos e atribuíveis a IReadOnlyDictionary<TKey,TValue>.

CreateImmutableEnumerableInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>, Func<IEnumerable<TElement>, TCollection>)

Cria metadados para tipos de coleção não imutáveis de dicionário.

CreateIReadOnlyDictionaryInfo<TCollection,TKey,TValue>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Cria metadados para tipos atribuíveis a IReadOnlyDictionary<TKey,TValue>.

CreateISetInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Cria metadados para tipos atribuíveis a ISet<T>.

CreateListInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Cria metadados para tipos atribuíveis a List<T>.

CreateMemoryInfo<TElement>(JsonSerializerOptions, JsonCollectionInfoValues<Memory<TElement>>)

Cria metadados de serialização para Memory<T>.

CreateObjectInfo<T>(JsonSerializerOptions, JsonObjectInfoValues<T>)

Cria metadados para uma classe ou struct complexo.

CreatePropertyInfo<T>(JsonSerializerOptions, JsonPropertyInfoValues<T>)

Cria metadados para uma propriedade ou campo.

CreateQueueInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Cria metadados para tipos atribuíveis a Queue<T>.

CreateQueueInfo<TCollection>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>, Action<TCollection,Object>)

Cria metadados para tipos atribuíveis a Queue.

CreateReadOnlyMemoryInfo<TElement>(JsonSerializerOptions, JsonCollectionInfoValues<ReadOnlyMemory<TElement>>)

Cria metadados de serialização para ReadOnlyMemory<T>.

CreateStackInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Cria metadados para tipos atribuíveis a Stack<T>.

CreateStackInfo<TCollection>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>, Action<TCollection,Object>)

Cria metadados para tipos atribuíveis a Stack.

CreateValueInfo<T>(JsonSerializerOptions, JsonConverter)

Cria metadados para um primitivo ou um tipo com um conversor personalizado.

GetEnumConverter<T>(JsonSerializerOptions)

Cria uma JsonConverter<T> instância que converte T valores.

GetNullableConverter<T>(JsonSerializerOptions)

Cria uma JsonConverter<T> instância que converte T?? valores.

GetNullableConverter<T>(JsonTypeInfo<T>)

Cria uma JsonConverter<T> instância que converte T?? valores.

GetUnsupportedTypeConverter<T>()

Obtém um conversor de tipo que lança um NotSupportedException.

Aplica-se a