แก้ไข

แชร์ผ่าน


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);
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 

Parameters

key
String

The key to a particular remoting message property.

value
Object

The value of a particular remoting message property.

Return Value

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

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)

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

Applies to

See also