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
L’instance JsonTypeInfo a été verrouillée pour une modification supplémentaire.
- ou -
La gestion des membres non mappée n’est prise en charge que pour Object.
Une valeur non valide JsonUnmappedMemberHandling a été spécifiée.
Remarques
Pour les contrats provenant ou DefaultJsonTypeInfoResolverJsonSerializerContext, la valeur de ce rappel est mappée à partir de toutes les JsonUnmappedMemberHandlingAttribute annotations.