JsonSerializerOptions.AllowOutOfOrderMetadataProperties Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Allows JSON metadata properties to be specified after regular properties in a deserialized JSON object.
public:
property bool AllowOutOfOrderMetadataProperties { bool get(); void set(bool value); };
public bool AllowOutOfOrderMetadataProperties { get; set; }
member this.AllowOutOfOrderMetadataProperties : bool with get, set
Public Property AllowOutOfOrderMetadataProperties As Boolean
Property Value
Exceptions
Thrown if this property is set after serialization or deserialization has occurred.
Remarks
When set to true
, removes the requirement that JSON metadata properties
such as $id and $type should be specified at the very start of the deserialized JSON object.
It should be noted that enabling this setting can result in over-buffering
when deserializing large JSON payloads in the context of streaming deserialization.
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για