언어

JsonMetadataServices.CreateObjectInfo<T> 메서드

정의

복합 클래스 또는 구조체에 대한 메타데이터를 만듭니다.

public:
generic <typename T>
 static System::Text::Json::Serialization::Metadata::JsonTypeInfo<T> ^ CreateObjectInfo(System::Text::Json::JsonSerializerOptions ^ options, System::Text::Json::Serialization::Metadata::JsonObjectInfoValues<T> ^ objectInfo);
public static System.Text.Json.Serialization.Metadata.JsonTypeInfo<T> CreateObjectInfo<T>(System.Text.Json.JsonSerializerOptions options, System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<T> objectInfo);
static member CreateObjectInfo : System.Text.Json.JsonSerializerOptions * System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<'T> -> System.Text.Json.Serialization.Metadata.JsonTypeInfo<'T>
Public Shared Function CreateObjectInfo(Of T) (options As JsonSerializerOptions, objectInfo As JsonObjectInfoValues(Of T)) As JsonTypeInfo(Of T)

형식 매개 변수

T

클래스 또는 구조체의 형식입니다.

매개 변수

options
JsonSerializerOptions

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

objectInfo
JsonObjectInfoValues<T>

생성자, 속성 및 필드를 사용하여 개체 형식에 대한 serialization 메타데이터를 제공합니다.

반품

JsonTypeInfo<T> 클래스 또는 구조체를 나타내는 인스턴스입니다.

예외

options 또는 objectInfo .입니다 null.

설명

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

적용 대상