DataContractJsonSerializer.IgnoreExtensionDataObject Property

 

Gets a value that specifies whether unknown data is ignored on deserialization and whether the IExtensibleDataObject interface is ignored on serialization.

Namespace:   System.Runtime.Serialization.Json
Assembly:  System.Runtime.Serialization (in System.Runtime.Serialization.dll)

member IgnoreExtensionDataObject : bool with get

Property Value

Type: System.Boolean

true to ignore unknown data and IExtensibleDataObject; otherwise, false.

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, seeForward-Compatible Data Contracts.

.NET Framework
Available since 3.5
Return to top
Show: