MessageSurrogateFilter MessageSurrogateFilter MessageSurrogateFilter MessageSurrogateFilter Delegate

Definition

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 

Parameters

key
String String String String

The key to a particular remoting message property.

value
Object Object Object Object

The value of a particular remoting message property.

Return Value

System.Boolean

True if the RemotingSurrogateSelector class should ignore a particular IMessage property while creating an ObjRef for a MarshalByRefObject class.

Inheritance
MessageSurrogateFilterMessageSurrogateFilterMessageSurrogateFilterMessageSurrogateFilter
Attributes

Remarks

The MessageSurrogateFilter delegate is intended for use only by the remoting infrastructure of the .NET Framework; you should not instantiate the delegate directly.

The Filter property of the RemotingSurrogateSelector class gets and sets a MessageSurrogateFilter instance.

Each key/value parameter pair is a remoting message property that belongs to the Properties property of the IMessage class.

Extension Methods

GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate)

Gets an object that represents the method represented by the specified delegate.

Applies to

See also