BinaryFormatter.SurrogateSelector Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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)

public ISurrogateSelector SurrogateSelector { 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
Show: