This documentation is archived and is not being maintained.

IFormatter.SurrogateSelector Property

Gets or sets the SurrogateSelector used by the current formatter.

[Visual Basic]
Property SurrogateSelector As ISurrogateSelector
[C#]
ISurrogateSelector SurrogateSelector {get; set;}
[C++]
__property ISurrogateSelector* get_SurrogateSelector();
__property void set_SurrogateSelector(ISurrogateSelector*);
[JScript]
function get SurrogateSelector() : ISurrogateSelector;function set SurrogateSelector(ISurrogateSelector);

Property Value

The SurrogateSelector used by this formatter.

Remarks

An ISerializationSurrogate allows the user to specify an object best suited to handle the serialization of a particular object or class of objects. Think of it as an implementation of ISerializable but provided by a different object.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

IFormatter Interface | IFormatter Members | System.Runtime.Serialization Namespace

Show: