ServiceManager.RemoveCallback(Delegate, Delegate) Methode

Definition

Eine Hilfsmethode, die einen Delegate.Remove-Vorgang durchführt und Delegaten entpackt, die als Proxys für generische Rückrufe fungieren. Verwenden Sie diese Methode in Ihren Unsubscribe-Implementierungen.

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

Parameter

existing
Delegate

Der bestehende Delegat, aus dem der Rückruf entfernt werden soll.

toRemove
Delegate

Der zu entfernende Rückruf.

Gibt zurück

Gibt zurück Delegate, bei dem es sich um einen neuen Wert handelt, der dem vorhandenen Delegaten zugewiesen werden soll.

Gilt für: