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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om