언어

JsonMetadataServices.CreateListInfo<TCollection,TElement> 메서드

정의

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

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

형식 매개 변수

TCollection

형식의 제네릭 정의입니다.

TElement

요소 형식의 제네릭 정의입니다.

매개 변수

options
JsonSerializerOptions

JsonSerializerOptions 직렬화 및 역직렬화에 사용할 수 있습니다.

collectionInfo
JsonCollectionInfoValues<TCollection>

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

반품

JsonTypeInfo<TCollection>

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

설명

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

적용 대상