다음을 통해 공유


JsonMetadataServices.CreateMemoryInfo<TElement> 메서드

정의

에 대한 serialization 메타데이터를 Memory<T>만듭니다.

public:
generic <typename TElement>
 static System::Text::Json::Serialization::Metadata::JsonTypeInfo<Memory<TElement>> ^ CreateMemoryInfo(System::Text::Json::JsonSerializerOptions ^ options, System::Text::Json::Serialization::Metadata::JsonCollectionInfoValues<Memory<TElement>> ^ collectionInfo);
public static System.Text.Json.Serialization.Metadata.JsonTypeInfo<Memory<TElement>> CreateMemoryInfo<TElement> (System.Text.Json.JsonSerializerOptions options, System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<Memory<TElement>> collectionInfo);
static member CreateMemoryInfo : System.Text.Json.JsonSerializerOptions * System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<Memory<'Element>> -> System.Text.Json.Serialization.Metadata.JsonTypeInfo<Memory<'Element>>
Public Shared Function CreateMemoryInfo(Of TElement) (options As JsonSerializerOptions, collectionInfo As JsonCollectionInfoValues(Of Memory(Of TElement))) As JsonTypeInfo(Of Memory(Of TElement))

형식 매개 변수

TElement

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

매개 변수

options
JsonSerializerOptions

사용할 JsonSerializerOptions입니다.

collectionInfo
JsonCollectionInfoValues<Memory<TElement>>

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

반환

JsonTypeInfo<Memory<TElement>>

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

설명

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

적용 대상