MessageSurrogateFilter Delegat

Definicja

Określa, czy RemotingSurrogateSelector Klasa ma ignorować określoną IMessage Właściwość podczas tworzenia ObjRef dla MarshalByRefObject klasy.

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 

Parametry

key
String

Klucz do określonej właściwości wiadomości zdalnej.

value
Object

Wartość określonej właściwości komunikatu komunikacji zdalnej.

Wartość zwracana

Boolean

true Jeśli RemotingSurrogateSelector Klasa powinna ignorować określoną IMessage Właściwość podczas tworzenia ObjRef dla MarshalByRefObject klasy.

Atrybuty

Uwagi

MessageSurrogateFilterDelegat jest przeznaczony do użytku tylko przez infrastrukturę zdalną .NET Framework. nie należy bezpośrednio tworzyć wystąpienia delegata.

FilterWłaściwość RemotingSurrogateSelector klasy pobiera i ustawia MessageSurrogateFilter wystąpienie.

Każda para parametrów klucz/wartość jest komunikatem komunikacji zdalnej, który należy do Properties właściwości IMessage klasy.

Metody rozszerzania

GetMethodInfo(Delegate)

Pobiera obiekt reprezentujący metodę reprezentowaną przez określonego delegata.

Dotyczy

Zobacz też