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
ISurrogateSelector SurrogateSelector {get; set;}
__property ISurrogateSelector* get_SurrogateSelector();
__property void set_SurrogateSelector(ISurrogateSelector*);
function get SurrogateSelector() : ISurrogateSelector;function set SurrogateSelector(ISurrogateSelector);

Property Value

The SurrogateSelector used by this formatter.


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.


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