JsonMetadataServices.CreateDictionaryInfo<TCollection,TKey,TValue> Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Cria metadados para tipos atribuíveis a Dictionary<TKey,TValue>.
public:
generic <typename TCollection, typename TKey, typename TValue>
where TCollection : System::Collections::Generic::Dictionary<TKey, TValue> static System::Text::Json::Serialization::Metadata::JsonTypeInfo<TCollection> ^ CreateDictionaryInfo(System::Text::Json::JsonSerializerOptions ^ options, System::Text::Json::Serialization::Metadata::JsonCollectionInfoValues<TCollection> ^ collectionInfo);
public static System.Text.Json.Serialization.Metadata.JsonTypeInfo<TCollection> CreateDictionaryInfo<TCollection,TKey,TValue>(System.Text.Json.JsonSerializerOptions options, System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<TCollection> collectionInfo) where TCollection : System.Collections.Generic.Dictionary<TKey,TValue>;
static member CreateDictionaryInfo : System.Text.Json.JsonSerializerOptions * System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<'Collection (requires 'Collection :> System.Collections.Generic.Dictionary<'Key, 'Value>)> -> System.Text.Json.Serialization.Metadata.JsonTypeInfo<'Collection (requires 'Collection :> System.Collections.Generic.Dictionary<'Key, 'Value>)> (requires 'Collection :> System.Collections.Generic.Dictionary<'Key, 'Value>)
Public Shared Function CreateDictionaryInfo(Of TCollection As Dictionary(Of TKey, TValue), TKey As Dictionary(Of TKey, TValue), TValue As Dictionary(Of TKey, TValue)) (options As JsonSerializerOptions, collectionInfo As JsonCollectionInfoValues(Of TCollection)) As JsonTypeInfo(Of TCollection)
Parâmetros de Tipo Genérico
- TCollection
A definição genérica do tipo.
- TKey
A definição genérica do tipo de chave.
- TValue
A definição genérica do tipo de valor.
Parâmetros
- options
- JsonSerializerOptions
A JsonSerializerOptions usar para serialização e desserialização.
- collectionInfo
- JsonCollectionInfoValues<TCollection>
Fornece metadados de serialização sobre o tipo de coleção.
Devoluções
Metadados de serialização para o tipo dado.
Observações
Esta API destina-se à saída do gerador de fonte System.Text.Json e não deve ser chamada diretamente.