DataContractJsonSerializer.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 unknown data is ignored on deserialization and whether the IExtensibleDataObject interface is ignored on serialization.
public:
property bool IgnoreExtensionDataObject { bool get(); };
public bool IgnoreExtensionDataObject { get; }
member this.IgnoreExtensionDataObject : bool
Public ReadOnly Property IgnoreExtensionDataObject As Boolean
Property Value
true
to ignore unknown data and IExtensibleDataObject; otherwise, false
.
Remarks
The IgnoreExtensionDataObject property affects types to which a DataContractAttribute attribute has been applied and that also implement the IExtensibleDataObject interface. In this case when IExtensibleDataObject is true
, data added in future versions of the contract is ignored on read and write. For more information, see Forward-Compatible Data Contracts.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort: Gedurende 2024 worden GitHub Issues uitgefaseerd als het feedbackmechanisme voor inhoud. Dit wordt vervangen door een nieuw feedbacksysteem. Ga voor meer informatie naar:Feedback verzenden en bekijken voor