RemotingSurrogateSelector クラス

定義

MarshalByRefObject から派生したオブジェクトをシリアル化するために使用できるリモート処理サロゲートを選択します。

public ref class RemotingSurrogateSelector : System::Runtime::Serialization::ISurrogateSelector
public class RemotingSurrogateSelector : System.Runtime.Serialization.ISurrogateSelector
[System.Runtime.InteropServices.ComVisible(true)]
public class RemotingSurrogateSelector : System.Runtime.Serialization.ISurrogateSelector
[System.Runtime.InteropServices.ComVisible(true)]
[System.Security.SecurityCritical]
public class RemotingSurrogateSelector : System.Runtime.Serialization.ISurrogateSelector
type RemotingSurrogateSelector = class
    interface ISurrogateSelector
[<System.Runtime.InteropServices.ComVisible(true)>]
type RemotingSurrogateSelector = class
    interface ISurrogateSelector
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Security.SecurityCritical>]
type RemotingSurrogateSelector = class
    interface ISurrogateSelector
Public Class RemotingSurrogateSelector
Implements ISurrogateSelector
継承
RemotingSurrogateSelector
属性
実装

注釈

サロゲートは、オブジェクトのシリアル化要件を処理できるオブジェクトです。 リモート処理サロゲートは、 から MarshalByRefObject派生したオブジェクトのリモート処理シリアル化要件を処理します。 ではRemotingSurrogateSelector、 と SoapFormatterによって使用される登録済みのサロゲートがBinaryFormatter管理されます。

のリモート処理を目的 MarshalByRefObjectとしたシリアル化中に、リモート処理サロゲートによって、 ObjRef が作成され、リモート オブジェクトのアクティブ化と通信に必要なすべての関連情報が含まれます。 その後、新しく作成 ObjRef された をリモートの場所に送信し、プロキシの作成に使用できます。

注意

このクラスは、クラス レベルでリンク要求と継承要求を行います。 SecurityExceptionは、直接の呼び出し元または派生クラスにインフラストラクチャアクセス許可がない場合にスローされます。 セキュリティ要求の詳細については、「 リンク要求継承要求」を参照してください。

コンストラクター

RemotingSurrogateSelector()

RemotingSurrogateSelector クラスの新しいインスタンスを初期化します。

プロパティ

Filter

MessageSurrogateFilter の現在のインスタンスの RemotingSurrogateSelector デリゲートを取得または設定します。

メソッド

ChainSelector(ISurrogateSelector)

指定した ISurrogateSelector をサロゲート セレクター チェインに追加します。

Equals(Object)

指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
GetHashCode()

既定のハッシュ関数として機能します。

(継承元 Object)
GetNextSelector()

サロゲート セレクターのチェイン内の次の ISurrogateSelector を返します。

GetRootObject()

オブジェクト グラフのルートにあるオブジェクトを返します。

GetSurrogate(Type, StreamingContext, ISurrogateSelector)

指定したコンテキストにおける指定した型に適したサロゲートを返します。

GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
MemberwiseClone()

現在の Object の簡易コピーを作成します。

(継承元 Object)
SetRootObject(Object)

オブジェクト グラフのルートにあるオブジェクトを設定します。

ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)
UseSoapFormat()

現在のサロゲート セレクターを SOAP 形式を使用できるように設定します。

適用対象

こちらもご覧ください