JsonDerivedTypeAttribute 생성자
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
| 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에 사용할 형식 판별자 식별자입니다.