Formatter::SurrogateSelector Property
.NET Framework (current version)
When overridden in a derived class, gets or sets the ISurrogateSelector used with the current formatter.
Assembly: mscorlib (in mscorlib.dll)
public: property ISurrogateSelector^ SurrogateSelector { virtual ISurrogateSelector^ get() abstract; virtual void set(ISurrogateSelector^ value) abstract; }
Property Value
Type: System.Runtime.Serialization::ISurrogateSelector^The ISurrogateSelector used with the current formatter.
Implements
IFormatter::SurrogateSelectorUse the SurrogateSelector to look up implementations of ISerializationSurrogate that control the serialization of a particular type.
If an object type has a matching surrogate, then serialization and deserialization are handed off to the surrogate even if the type implements the ISerializable interface.
Notes to Inheritors:
You must implement this property in a derived class.
.NET Framework
Available since 1.1
Available since 1.1
Show: