DataContractSerializer.IgnoreExtensionDataObject Property

Definition

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