共用方式為


IFormatter.SurrogateSelector 屬性

定義

取得或設定目前格式子所使用的 SurrogateSelector

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; }
public System.Runtime.Serialization.ISurrogateSelector SurrogateSelector { get; set; }
member this.SurrogateSelector : System.Runtime.Serialization.ISurrogateSelector with get, set
Public Property SurrogateSelector As ISurrogateSelector

屬性值

ISurrogateSelector

SurrogateSelector,由這個格式子所使用。

備註

ISerializationSurrogate可讓使用者指定最適合處理特定物件或物件類別序列化的物件。 請將它視為 的實作, ISerializable 但由不同的 物件提供。

適用於