MessageSurrogateFilter 代理人

定義

RemotingSurrogateSelector クラスの IMessage の作成中に、ObjRef クラスが、特定の MarshalByRefObject プロパティを無視する必要があるかどうかを判断します。

public delegate bool MessageSurrogateFilter(System::String ^ key, System::Object ^ value);
public delegate bool MessageSurrogateFilter(string key, object value);
[System.Runtime.InteropServices.ComVisible(true)]
public delegate bool MessageSurrogateFilter(string key, object value);
type MessageSurrogateFilter = delegate of string * obj -> bool
[<System.Runtime.InteropServices.ComVisible(true)>]
type MessageSurrogateFilter = delegate of string * obj -> bool
Public Delegate Function MessageSurrogateFilter(key As String, value As Object) As Boolean 

パラメーター

key
String

特定のリモート処理メッセージ プロパティのキー。

value
Object

特定のリモート処理メッセージ プロパティの値。

戻り値

Boolean

MarshalByRefObject クラスの ObjRef の作成中に、RemotingSurrogateSelector クラスが、特定の IMessage プロパティを無視する必要がある場合は true

属性

注釈

デリゲートは、 MessageSurrogateFilter .NET Framework のリモート処理インフラストラクチャによってのみ使用されることを意図しています。デリゲートを直接インスタンス化することはできません。

Filterクラスのプロパティは、 RemotingSurrogateSelector インスタンスを取得して設定し MessageSurrogateFilter ます。

各キー/値パラメーターのペアは、クラスのプロパティに属するリモート処理メッセージプロパティです Properties IMessage

拡張メソッド

GetMethodInfo(Delegate)

指定したデリゲートによって表されるメソッドを表すオブジェクトを取得します。

適用対象

こちらもご覧ください