Επεξεργασία

Κοινή χρήση μέσω


DataContractJsonSerializer.IgnoreExtensionDataObject Property

Definition

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