JsonDocumentOptions.AllowDuplicateProperties 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.
Définit si les noms de propriétés en double sont autorisés lors de la désérialisation des objets JSON.
public:
property bool AllowDuplicateProperties { bool get(); void set(bool value); };
public bool AllowDuplicateProperties { get; set; }
member this.AllowDuplicateProperties : bool with get, set
Public Property AllowDuplicateProperties As Boolean
Valeur de propriété
Remarques
true est sélectionné par défaut. Si la valeur est définie false, JsonException est levée lorsqu’un nom de propriété en double est rencontré lors de la désérialisation.