BinaryFormatter.SurrogateSelector Propriedade

Definição

Obtém ou define a ISurrogateSelector que controla a substituição de tipos durante a serialização e desserialização.

public:
 property System::Runtime::Serialization::ISurrogateSelector ^ SurrogateSelector { System::Runtime::Serialization::ISurrogateSelector ^ get(); void set(System::Runtime::Serialization::ISurrogateSelector ^ value); };
public System.Runtime.Serialization.ISurrogateSelector SurrogateSelector { get; set; }
member this.SurrogateSelector : System.Runtime.Serialization.ISurrogateSelector with get, set
Public Property SurrogateSelector As ISurrogateSelector

Valor de Propriedade

O seletor substituto para usar com este formatador.

Implementações

Observações

Warning

BinaryFormatter é insegura e não pode ser tornada segura. Para obter mais informações, consulte o guia de segurança BinaryFormatter.

O seletor de substituto é usado por System.Runtime.Remoting para gerar ObjRef instâncias para objetos que derivam de MarshalByRefObject.

Aplica-se a

Ver também