JsonTypeInfo.PreferredPropertyObjectCreationHandling 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 la valeur préférée JsonObjectCreationHandling pour les propriétés contenues dans le type .
public:
property Nullable<System::Text::Json::Serialization::JsonObjectCreationHandling> PreferredPropertyObjectCreationHandling { Nullable<System::Text::Json::Serialization::JsonObjectCreationHandling> get(); void set(Nullable<System::Text::Json::Serialization::JsonObjectCreationHandling> value); };
public System.Text.Json.Serialization.JsonObjectCreationHandling? PreferredPropertyObjectCreationHandling { get; set; }
member this.PreferredPropertyObjectCreationHandling : Nullable<System.Text.Json.Serialization.JsonObjectCreationHandling> with get, set
Public Property PreferredPropertyObjectCreationHandling As Nullable(Of JsonObjectCreationHandling)
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 JsonTypeInfoKind.Object.
Spécifie une valeur non valide JsonObjectCreationHandling .
Remarques
Pour les contrats provenant de DefaultJsonTypeInfoResolver ou JsonSerializerContext, la valeur de ce rappel sera mappée à partir d’annotations JsonObjectCreationHandlingAttribute sur les types.
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour