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.​Metadata.​JsonPolymorphismOptions
Assembly: System.Text.Json
Inheritance: object → JsonPolymorphismOptions
Defines polymorphic configuration for a specified base type.
Properties
public
Collections.​Generic.​IList<​JsonDerivedType>
DerivedTypes
Gets the list of derived types supported in the current polymorphic type configuration.
public
bool
IgnoreUnrecognizedTypeDiscriminators
Gets or sets a value that indicates whether the serializer should ignore any unrecognized type discriminator IDs and revert to the contract of the base type.
public
string
TypeDiscriminatorPropertyName
Gets or sets a custom type discriminator property name for the polymorphic type.
Uses the default '$type' property name if left unset.
UnknownDerivedTypeHandling
Gets or sets the behavior when serializing an undeclared derived runtime type.
Methods
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object