MessageSurrogateFilter 委托

定义

确定在为 RemotingSurrogateSelector 类创建 IMessage 时,ObjRef 类是否忽略某个特定的 MarshalByRefObject 属性。Determines whether the RemotingSurrogateSelector class should ignore a particular IMessage property while creating an ObjRef for a MarshalByRefObject class.

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

参数

key
String

特定远程处理消息属性的键。The key to a particular remoting message property.

value
Object

特定远程处理消息属性的值。The value of a particular remoting message property.

返回值

Boolean

如果为 MarshalByRefObject 类创建 ObjRef 时,RemotingSurrogateSelector 类应忽略特定 IMessage 属性,则为 truetrue if the RemotingSurrogateSelector class should ignore a particular IMessage property while creating an ObjRef for a MarshalByRefObject class.

继承
MessageSurrogateFilter
属性

注解

@No__t-0 委托仅供 .NET Framework 的远程处理基础结构使用;不应直接实例化委托。The MessageSurrogateFilter delegate is intended for use only by the remoting infrastructure of the .NET Framework; you should not instantiate the delegate directly.

@No__t 类的 Filter 属性获取并设置 @no__t 的实例。The Filter property of the RemotingSurrogateSelector class gets and sets a MessageSurrogateFilter instance.

每个键/值参数对都是一个远程处理消息属性,该属性属于 @no__t 类的 Properties 属性。Each key/value parameter pair is a remoting message property that belongs to the Properties property of the IMessage class.

扩展方法

GetMethodInfo(Delegate)

获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate.

适用于

另请参阅