JsonTypeInfo.PolymorphismOptions Eigenschaft

Definition

Dient zum Abrufen oder Festlegen eines Konfigurationsobjekts, das Polymorphismusmetadaten angibt.

public:
 property System::Text::Json::Serialization::Metadata::JsonPolymorphismOptions ^ PolymorphismOptions { System::Text::Json::Serialization::Metadata::JsonPolymorphismOptions ^ get(); void set(System::Text::Json::Serialization::Metadata::JsonPolymorphismOptions ^ value); };
public System.Text.Json.Serialization.Metadata.JsonPolymorphismOptions? PolymorphismOptions { get; set; }
member this.PolymorphismOptions : System.Text.Json.Serialization.Metadata.JsonPolymorphismOptions with get, set
Public Property PolymorphismOptions As JsonPolymorphismOptions

Eigenschaftswert

Ausnahmen

value wurde einer anderen JsonTypeInfo Instanz zugeordnet.

Die JsonTypeInfo Instanz wurde zur weiteren Änderung gesperrt.

-oder-

Die polymorphe Serialisierung wird für die aktuellen Metadaten Kindnicht unterstützt.

Hinweise

Bei Verträgen, die von DefaultJsonTypeInfoResolver oder JsonSerializerContextaus stammen, wird die Konfiguration dieser Einstellung von beliebigen JsonDerivedTypeAttribute Oder JsonPolymorphicAttribute Anmerkungen zugeordnet.

Gilt für: