This documentation is archived and is not being maintained.

BinaryFormatter.SurrogateSelector Property

Gets or sets an ISurrogateSelector that controls type substitution during serialization and deserialization.

[Visual Basic]
Public Overridable Property SurrogateSelector As ISurrogateSelector _
    Implements IFormatter.SurrogateSelector
public virtual ISurrogateSelector SurrogateSelector {get; set;}
public: __property virtual ISurrogateSelector* get_SurrogateSelector();
public: __property virtual void set_SurrogateSelector(ISurrogateSelector*);
public function get SurrogateSelector() : ISurrogateSelector;
public function set SurrogateSelector(ISurrogateSelector);

Property Value

The surrogate selector to use with this formatter.




The surrogate selector is used by System.Runtime.Remoting to generate ObjRef instances for objects that derive from MarshalByRefObject.


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

BinaryFormatter Class | BinaryFormatter Members | System.Runtime.Serialization.Formatters.Binary Namespace | SurrogateSelector