ServiceManager.RemoveCallback(Delegate, Delegate) Metoda

Definicja

Metoda pomocnika, która wykonuje operację Delegate.Remove , i odpakowuje delegatów, które są serwerami proxy do ogólnych wywołań zwrotnych. Należy użyć tej metody w Unsubscribe implementacjach.

protected:
 static Delegate ^ RemoveCallback(Delegate ^ existing, Delegate ^ toRemove);
protected static Delegate RemoveCallback (Delegate existing, Delegate toRemove);
static member RemoveCallback : Delegate * Delegate -> Delegate
Protected Shared Function RemoveCallback (existing As Delegate, toRemove As Delegate) As Delegate

Parametry

existing
Delegate

Istniejący delegat do usunięcia wywołania zwrotnego.

toRemove
Delegate

Wywołanie zwrotne do usunięcia.

Zwraca

Zwraca Delegatewartość , która jest nową wartością do przypisania do istniejącego delegata.

Dotyczy