IFormatter.SurrogateSelector IFormatter.SurrogateSelector IFormatter.SurrogateSelector IFormatter.SurrogateSelector Property

定義

取得或設定目前格式子所使用的 SurrogateSelectorGets or sets the SurrogateSelector used by the current formatter.

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

屬性值

備註

ISerializationSurrogate可讓使用者指定最適合用來處理特定物件或物件類別之序列化的物件。A ISerializationSurrogate allows the user to specify an object best suited to handle the serialization of a particular object or class of objects. 請將它視為的執行ISerializable , 但由不同的物件所提供。Think of it as an implementation of ISerializable but provided by a different object.

適用於