DataContractJsonSerializer.IgnoreExtensionDataObject Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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)

Public ReadOnly Property IgnoreExtensionDataObject As Boolean

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: