DataContractSerializer.IgnoreExtensionDataObject 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.
Gets a value that specifies whether to ignore data supplied by an extension of the class when the class is being serialized or deserialized.
public:
property bool IgnoreExtensionDataObject { bool get(); };
public bool IgnoreExtensionDataObject { get; }
member this.IgnoreExtensionDataObject : bool
Public ReadOnly Property IgnoreExtensionDataObject As Boolean
Property Value
true
to omit the extension data; otherwise, false
.
Remarks
The IgnoreExtensionDataObject property is used when the class to which a DataContractAttribute has been applied also implements the IExtensibleDataObject interface. In this case, the data added in a future version of the contract is ignored on read and write. For more information, see Forward-Compatible Data Contracts.
Applies to
See also
Зворотний зв’язок
https://aka.ms/ContentUserFeedback.
Очікується незабаром: протягом 2024 року ми будемо припиняти використання механізму реєстрації проблем у GitHub для зворотного зв’язку щодо вмісту й замінювати його новою системою зворотного зв’язку. Докладніше:Надіслати й переглянути відгук про