JsonTypeInfo.UnmappedMemberHandling Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient ou définit le remplacement au niveau JsonUnmappedMemberHandling du type.
public:
property Nullable<System::Text::Json::Serialization::JsonUnmappedMemberHandling> UnmappedMemberHandling { Nullable<System::Text::Json::Serialization::JsonUnmappedMemberHandling> get(); void set(Nullable<System::Text::Json::Serialization::JsonUnmappedMemberHandling> value); };
public System.Text.Json.Serialization.JsonUnmappedMemberHandling? UnmappedMemberHandling { get; set; }
member this.UnmappedMemberHandling : Nullable<System.Text.Json.Serialization.JsonUnmappedMemberHandling> with get, set
Public Property UnmappedMemberHandling As Nullable(Of JsonUnmappedMemberHandling)
Valeur de propriété
Exceptions
Le JsonTypeInfo instance a été verrouillé pour une modification ultérieure.
-ou-
La gestion des membres non mappés est uniquement prise en charge pour Object.
Une valeur non valide JsonUnmappedMemberHandling a été spécifiée.
Remarques
Pour les contrats provenant de DefaultJsonTypeInfoResolver ou JsonSerializerContext, la valeur de ce rappel est mappée à partir de toutes JsonUnmappedMemberHandlingAttribute les annotations.
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de l’année 2024, nous abandonnerons progressivement le mécanisme de retour d’information GitHub Issues pour le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultez :Soumettre et afficher des commentaires pour