แก้ไข

แชร์ผ่าน


DataContractSerializer.DataContractSurrogate Property

Definition

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

Property Value

An implementation of the IDataContractSurrogate class.

Remarks

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.

Applies to

See also