JsonMetadataServices.CreateIReadOnlyDictionaryInfo<TCollection,TKey,TValue> Metodo

Definizione

Crea metadati per i tipi assegnabili a IReadOnlyDictionary<TKey,TValue>.

public:
generic <typename TCollection, typename TKey, typename TValue>
 where TCollection : System::Collections::Generic::IReadOnlyDictionary<TKey, TValue> static System::Text::Json::Serialization::Metadata::JsonTypeInfo<TCollection> ^ CreateIReadOnlyDictionaryInfo(System::Text::Json::JsonSerializerOptions ^ options, System::Text::Json::Serialization::Metadata::JsonCollectionInfoValues<TCollection> ^ collectionInfo);
public static System.Text.Json.Serialization.Metadata.JsonTypeInfo<TCollection> CreateIReadOnlyDictionaryInfo<TCollection,TKey,TValue> (System.Text.Json.JsonSerializerOptions options, System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<TCollection> collectionInfo) where TCollection : System.Collections.Generic.IReadOnlyDictionary<TKey,TValue>;
static member CreateIReadOnlyDictionaryInfo : System.Text.Json.JsonSerializerOptions * System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<'Collection (requires 'Collection :> System.Collections.Generic.IReadOnlyDictionary<'Key, 'Value>)> -> System.Text.Json.Serialization.Metadata.JsonTypeInfo<'Collection (requires 'Collection :> System.Collections.Generic.IReadOnlyDictionary<'Key, 'Value>)> (requires 'Collection :> System.Collections.Generic.IReadOnlyDictionary<'Key, 'Value>)
Public Shared Function CreateIReadOnlyDictionaryInfo(Of TCollection As IReadOnlyDictionary(Of TKey, TValue), TKey As IReadOnlyDictionary(Of TKey, TValue), TValue As IReadOnlyDictionary(Of TKey, TValue)) (options As JsonSerializerOptions, collectionInfo As JsonCollectionInfoValues(Of TCollection)) As JsonTypeInfo(Of TCollection)

Parametri di tipo

TCollection

Definizione generica del tipo.

TKey

Definizione generica del tipo di chiave.

TValue

Definizione generica del tipo di valore.

Parametri

options
JsonSerializerOptions

Oggetto JsonSerializerOptions da usare per la serializzazione e la deserializzazione.

collectionInfo
JsonCollectionInfoValues<TCollection>

Fornisce metadati di serializzazione sul tipo di raccolta.

Restituisce

JsonTypeInfo<TCollection>

Metadati di serializzazione per il tipo specificato.

Commenti

Questa API è utilizzata dall'output del generatore di origine System.Text.Json e non deve essere chiamato direttamente.

Si applica a