JsonMetadataServices.CreateIDictionaryInfo メソッド

定義

オーバーロード

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

ソース:
JsonMetadataServices.Collections.cs
ソース:
JsonMetadataServices.Collections.cs
ソース:
JsonMetadataServices.Collections.cs
ソース:
JsonMetadataServices.Collections.cs
ソース:
JsonMetadataServices.Collections.cs
ソース:
JsonMetadataServices.Collections.cs
ソース:
JsonMetadataServices.Collections.cs

IDictionary<TKey,TValue>に割り当て可能な型のメタデータを作成します。

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)

型パラメーター

TCollection

型のジェネリック定義。

TKey

キー型のジェネリック定義。

TValue

値型のジェネリック定義。

パラメーター

options
JsonSerializerOptions

シリアル化と逆シリアル化に使用する JsonSerializerOptions

collectionInfo
JsonCollectionInfoValues<TCollection>

コレクション型に関するシリアル化メタデータを提供します。

返品

JsonTypeInfo<TCollection>

指定された型のシリアル化メタデータ。

注釈

この API は System.Text.Json ソース ジェネレーターの出力で使用されるため、直接呼び出すべきではありません。

適用対象

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

ソース:
JsonMetadataServices.Collections.cs
ソース:
JsonMetadataServices.Collections.cs
ソース:
JsonMetadataServices.Collections.cs
ソース:
JsonMetadataServices.Collections.cs
ソース:
JsonMetadataServices.Collections.cs
ソース:
JsonMetadataServices.Collections.cs
ソース:
JsonMetadataServices.Collections.cs

IDictionaryに割り当て可能な型のメタデータを作成します。

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)

型パラメーター

TCollection

型のジェネリック定義。

パラメーター

options
JsonSerializerOptions

シリアル化と逆シリアル化に使用する JsonSerializerOptions

collectionInfo
JsonCollectionInfoValues<TCollection>

コレクション型に関するシリアル化メタデータを提供します。

返品

JsonTypeInfo<TCollection>

指定された型のシリアル化メタデータ。

注釈

この API は System.Text.Json ソース ジェネレーターの出力で使用されるため、直接呼び出すべきではありません。

適用対象