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
[C#]
public virtual ISurrogateSelector SurrogateSelector {get; set;}
[C++]
public: __property virtual ISurrogateSelector* get_SurrogateSelector();
public: __property virtual void set_SurrogateSelector(ISurrogateSelector*);
[JScript]
public function get SurrogateSelector() : ISurrogateSelector;
public function set SurrogateSelector(ISurrogateSelector);

Property Value

The surrogate selector to use with this formatter.

Implements

IFormatter.SurrogateSelector

Remarks

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

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

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

Show: