다음을 통해 공유


JsonDerivedTypeAttribute 생성자

정의

오버로드

JsonDerivedTypeAttribute(Type)

지정된 매개 변수를 사용하여 새 특성을 초기화합니다.

JsonDerivedTypeAttribute(Type, Int32)

지정된 매개 변수를 사용하여 새 특성을 초기화합니다.

JsonDerivedTypeAttribute(Type, String)

지정된 매개 변수를 사용하여 새 특성을 초기화합니다.

JsonDerivedTypeAttribute(Type)

지정된 매개 변수를 사용하여 새 특성을 초기화합니다.

public:
 JsonDerivedTypeAttribute(Type ^ derivedType);
public JsonDerivedTypeAttribute (Type derivedType);
new System.Text.Json.Serialization.JsonDerivedTypeAttribute : Type -> System.Text.Json.Serialization.JsonDerivedTypeAttribute
Public Sub New (derivedType As Type)

매개 변수

derivedType
Type

선언된 기반 형식의 다형 직렬화에서 지원되어야 하는 파생 형식입니다.

적용 대상

JsonDerivedTypeAttribute(Type, Int32)

지정된 매개 변수를 사용하여 새 특성을 초기화합니다.

public:
 JsonDerivedTypeAttribute(Type ^ derivedType, int typeDiscriminator);
public JsonDerivedTypeAttribute (Type derivedType, int typeDiscriminator);
new System.Text.Json.Serialization.JsonDerivedTypeAttribute : Type * int -> System.Text.Json.Serialization.JsonDerivedTypeAttribute
Public Sub New (derivedType As Type, typeDiscriminator As Integer)

매개 변수

derivedType
Type

선언된 기본 형식의 다형 serialization에서 지원되어야 하는 파생 형식입니다.

typeDiscriminator
Int32

하위 형식의 serialization에 사용할 형식 판별자 식별자입니다.

적용 대상

JsonDerivedTypeAttribute(Type, String)

지정된 매개 변수를 사용하여 새 특성을 초기화합니다.

public:
 JsonDerivedTypeAttribute(Type ^ derivedType, System::String ^ typeDiscriminator);
public JsonDerivedTypeAttribute (Type derivedType, string typeDiscriminator);
new System.Text.Json.Serialization.JsonDerivedTypeAttribute : Type * string -> System.Text.Json.Serialization.JsonDerivedTypeAttribute
Public Sub New (derivedType As Type, typeDiscriminator As String)

매개 변수

derivedType
Type

선언된 기본 형식의 다형 serialization에서 지원되어야 하는 파생 형식입니다.

typeDiscriminator
String

하위 형식의 serialization에 사용할 형식 판별자 식별자입니다.

적용 대상