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

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

戻り値

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

属性

注釈

MessageSurrogateFilter デリゲートは、.NET Framework のリモート処理インフラストラクチャでのみ使用することを目的としています。デリゲートを直接インスタンス化しないでください。

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

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

拡張メソッド

名前 説明
GetMethodInfo(Delegate)

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

適用対象

こちらもご覧ください