Export (0) Print
Expand All

DataContractSerializer.DataContractSurrogate Property

Gets a surrogate type that can extend the serialization or deserialization process.

Namespace: System.Runtime.Serialization
Assembly: System.Runtime.Serialization (in system.runtime.serialization.dll)

public IDataContractSurrogate DataContractSurrogate { get; }
/** @property */
public IDataContractSurrogate get_DataContractSurrogate ()

public function get DataContractSurrogate () : IDataContractSurrogate

Not applicable.

Property Value

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 is to enable serialization of legacy types that are not serializable, that is, types to which the DataContractAttribute attribute has not been applied.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft