Udostępnij za pośrednictwem


JsonMetadataServices.CreateIDictionaryInfo Metoda

Definicja

Przeciążenia

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

Tworzy metadane dla typów, które można przypisać do IDictionary<TKey,TValue>elementu .

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

Tworzy metadane dla typów, które można przypisać do IDictionaryelementu .

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

Źródło:
JsonMetadataServices.Collections.cs
Źródło:
JsonMetadataServices.Collections.cs
Źródło:
JsonMetadataServices.Collections.cs
Źródło:
JsonMetadataServices.Collections.cs
Źródło:
JsonMetadataServices.Collections.cs

Tworzy metadane dla typów, które można przypisać do IDictionary<TKey,TValue>elementu .

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

Parametry typu

TCollection

Ogólna definicja typu.

TKey

Ogólna definicja typu klucza.

TValue

Ogólna definicja typu wartości.

Parametry

options
JsonSerializerOptions

Element JsonSerializerOptions do użycia do serializacji i deserializacji.

collectionInfo
JsonCollectionInfoValues<TCollection>

Udostępnia metadane serializacji dotyczące typu kolekcji.

Zwraca

JsonTypeInfo<TCollection>

Metadane serializacji dla danego typu.

Uwagi

Ten interfejs API jest używany przez dane wyjściowe generatora źródłowego System.Text.Json i nie powinien być wywoływany bezpośrednio.

Dotyczy

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

Źródło:
JsonMetadataServices.Collections.cs
Źródło:
JsonMetadataServices.Collections.cs
Źródło:
JsonMetadataServices.Collections.cs
Źródło:
JsonMetadataServices.Collections.cs
Źródło:
JsonMetadataServices.Collections.cs

Tworzy metadane dla typów, które można przypisać do IDictionaryelementu .

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

Parametry typu

TCollection

Ogólna definicja typu.

Parametry

options
JsonSerializerOptions

Element JsonSerializerOptions do użycia do serializacji i deserializacji.

collectionInfo
JsonCollectionInfoValues<TCollection>

Udostępnia metadane serializacji dotyczące typu kolekcji.

Zwraca

JsonTypeInfo<TCollection>

Metadane serializacji dla danego typu.

Uwagi

Ten interfejs API jest używany przez dane wyjściowe generatora źródłowego System.Text.Json i nie powinien być wywoływany bezpośrednio.

Dotyczy