JsonMetadataServices.CreateIDictionaryInfo 메서드

정의

오버로드

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

에 할당할 수 있는 형식에 대한 메타데이터를 IDictionary<TKey,TValue>만듭니다.

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

에 할당할 수 있는 형식에 대한 메타데이터를 IDictionary만듭니다.

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

Source:
JsonMetadataServices.Collections.cs
Source:
JsonMetadataServices.Collections.cs
Source:
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 serialization 및 deserialization에 사용할 입니다.

collectionInfo
JsonCollectionInfoValues<TCollection>

컬렉션 형식에 대한 serialization 메타데이터를 제공합니다.

반환

JsonTypeInfo<TCollection>

지정된 형식에 대한 serialization 메타데이터입니다.

설명

이 API는 System.Text.Json 원본 생성기의 출력에서 사용하기 위한 것이며 직접 호출해서는 안 됩니다.

적용 대상

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

Source:
JsonMetadataServices.Collections.cs
Source:
JsonMetadataServices.Collections.cs
Source:
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 serialization 및 deserialization에 사용할 입니다.

collectionInfo
JsonCollectionInfoValues<TCollection>

컬렉션 형식에 대한 serialization 메타데이터를 제공합니다.

반환

JsonTypeInfo<TCollection>

지정된 형식에 대한 serialization 메타데이터입니다.

설명

이 API는 System.Text.Json 원본 생성기의 출력에서 사용하기 위한 것이며 직접 호출해서는 안 됩니다.

적용 대상