BinaryFormatter.SurrogateSelector Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

Namespace:   System.Runtime.Serialization.Formatters.Binary
Assembly:  mscorlib (in mscorlib.dll)

abstract SurrogateSelector : ISurrogateSelector with get, set
override SurrogateSelector : ISurrogateSelector with get, set

Property Value

Type: System.Runtime.Serialization.ISurrogateSelector

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.

.NET Framework
Available since 1.1
Return to top