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 → AttributeJsonAttribute → 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

public bool
Equals​(object obj)
Inherited from Attribute
public int
GetHashCode​()
Inherited from Attribute
public bool
IsDefaultAttribute​()
Inherited from Attribute
public bool
Match​(object obj)
Inherited from Attribute
protected void
Finalize​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object