JsonDerivedTypeAttribute Konstruktorer

Definition

Överlagringar

Name Description
JsonDerivedTypeAttribute(Type)

Initierar ett nytt attribut med angivna parametrar.

JsonDerivedTypeAttribute(Type, Int32)

Initierar ett nytt attribut med angivna parametrar.

JsonDerivedTypeAttribute(Type, String)

Initierar ett nytt attribut med angivna parametrar.

JsonDerivedTypeAttribute(Type)

Källa:
JsonDerivedTypeAttribute.cs
Källa:
JsonDerivedTypeAttribute.cs
Källa:
JsonDerivedTypeAttribute.cs
Källa:
JsonDerivedTypeAttribute.cs
Källa:
JsonDerivedTypeAttribute.cs
Källa:
JsonDerivedTypeAttribute.cs
Källa:
JsonDerivedTypeAttribute.cs

Initierar ett nytt attribut med angivna parametrar.

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)

Parametrar

derivedType
Type

En härledd typ som bör stödjas i polymorf serialisering av den deklarerade baserade typen.

Gäller för

JsonDerivedTypeAttribute(Type, Int32)

Källa:
JsonDerivedTypeAttribute.cs
Källa:
JsonDerivedTypeAttribute.cs
Källa:
JsonDerivedTypeAttribute.cs
Källa:
JsonDerivedTypeAttribute.cs
Källa:
JsonDerivedTypeAttribute.cs
Källa:
JsonDerivedTypeAttribute.cs
Källa:
JsonDerivedTypeAttribute.cs

Initierar ett nytt attribut med angivna parametrar.

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)

Parametrar

derivedType
Type

En härledd typ som bör stödjas i polymorf serialisering av den deklarerade bastypen.

typeDiscriminator
Int32

Den typdiskriminatoridentifierare som ska användas för serialiseringen av undertypen.

Gäller för

JsonDerivedTypeAttribute(Type, String)

Källa:
JsonDerivedTypeAttribute.cs
Källa:
JsonDerivedTypeAttribute.cs
Källa:
JsonDerivedTypeAttribute.cs
Källa:
JsonDerivedTypeAttribute.cs
Källa:
JsonDerivedTypeAttribute.cs
Källa:
JsonDerivedTypeAttribute.cs
Källa:
JsonDerivedTypeAttribute.cs

Initierar ett nytt attribut med angivna parametrar.

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)

Parametrar

derivedType
Type

En härledd typ som bör stödjas i polymorf serialisering av den deklarerade bastypen.

typeDiscriminator
String

Den typdiskriminatoridentifierare som ska användas för serialiseringen av undertypen.

Gäller för