次の方法で共有


BinaryFormatter.SurrogateSelector プロパティ

シリアル化中および逆シリアル化中に行われる型の置換を制御する ISurrogateSelector を取得または設定します。

Public Overridable Property SurrogateSelector As ISurrogateSelector _    Implements IFormatter.SurrogateSelector
[C#]
public virtual ISurrogateSelector SurrogateSelector {get; set;}
[C++]
public: __property virtual ISurrogateSelector* get_SurrogateSelector();public: __property virtual void set_SurrogateSelector(ISurrogateSelector*);
[JScript]
public function get SurrogateSelector() : ISurrogateSelector;public function set SurrogateSelector(ISurrogateSelector);

プロパティ値

対象のフォーマッタで使用するサロゲート セレクタ。

実装

IFormatter.SurrogateSelector

解説

サロゲート セレクタは、 MarshalByRefObject から派生したオブジェクトに対応する ObjRef インスタンスを生成するために、 System.Runtime.Remoting によって使用されます。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

BinaryFormatter クラス | BinaryFormatter メンバ | System.Runtime.Serialization.Formatters.Binary 名前空間 | SurrogateSelector