JsonMetadataServices.CreateICollectionInfo<TCollection,TElement> 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
에 할당할 수 있는 형식에 대한 메타데이터를 ICollection<T>만듭니다.
public:
generic <typename TCollection, typename TElement>
where TCollection : System::Collections::Generic::ICollection<TElement> static System::Text::Json::Serialization::Metadata::JsonTypeInfo<TCollection> ^ CreateICollectionInfo(System::Text::Json::JsonSerializerOptions ^ options, System::Text::Json::Serialization::Metadata::JsonCollectionInfoValues<TCollection> ^ collectionInfo);
public static System.Text.Json.Serialization.Metadata.JsonTypeInfo<TCollection> CreateICollectionInfo<TCollection,TElement>(System.Text.Json.JsonSerializerOptions options, System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<TCollection> collectionInfo) where TCollection : System.Collections.Generic.ICollection<TElement>;
static member CreateICollectionInfo : System.Text.Json.JsonSerializerOptions * System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<'Collection (requires 'Collection :> System.Collections.Generic.ICollection<'Element>)> -> System.Text.Json.Serialization.Metadata.JsonTypeInfo<'Collection (requires 'Collection :> System.Collections.Generic.ICollection<'Element>)> (requires 'Collection :> System.Collections.Generic.ICollection<'Element>)
Public Shared Function CreateICollectionInfo(Of TCollection As ICollection(Of TElement), TElement As ICollection(Of TElement)) (options As JsonSerializerOptions, collectionInfo As JsonCollectionInfoValues(Of TCollection)) As JsonTypeInfo(Of TCollection)
형식 매개 변수
- TCollection
형식의 제네릭 정의입니다.
- TElement
요소 형식의 제네릭 정의입니다.
매개 변수
- options
- JsonSerializerOptions
JsonSerializerOptions 직렬화 및 역직렬화에 사용할 수 있습니다.
- collectionInfo
- JsonCollectionInfoValues<TCollection>
컬렉션 형식에 대한 serialization 메타데이터를 제공합니다.
반품
지정된 형식에 대한 serialization 메타데이터입니다.
설명
이 API는 System.Text.Json 원본 생성기의 출력에서 사용하기 위한 것이며 직접 호출해서는 안 됩니다.