DataContractSerializer.DataContractSurrogate Property
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 surrogate type that can extend the serialization or deserialization process.
public:
property System::Runtime::Serialization::IDataContractSurrogate ^ DataContractSurrogate { System::Runtime::Serialization::IDataContractSurrogate ^ get(); };
public System.Runtime.Serialization.IDataContractSurrogate DataContractSurrogate { get; }
member this.DataContractSurrogate : System.Runtime.Serialization.IDataContractSurrogate
Public ReadOnly Property DataContractSurrogate As IDataContractSurrogate
An implementation of the IDataContractSurrogate class.
The IDataContractSurrogate can be used to customize how instances of a type are serialized and deserialized. For example, it can be used to enable the serialization of legacy types that are not serializable, that is, types to which the DataContractAttribute attribute has not been applied.
Product | Versions |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: