Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Text.​Json.​Serialization.​JsonDerivedTypeAttribute
Assembly: System.Text.Json
Inheritance: object → Attribute → JsonAttribute → JsonDerivedTypeAttribute
When placed on a type declaration, indicates that the specified subtype should be opted into polymorphic serialization.
Properties
public
Type
DerivedType
A derived type that should be supported in polymorphic serialization of the declared base type.
public
object
TypeDiscriminator
The type discriminator identifier to be used for the serialization of the subtype.
public
object
TypeId
Methods
protected
void
Finalize​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object