ServiceManager.RemoveCallback(Delegate, Delegate) Metodo

Definizione

Metodo di supporto che esegue l'operazione Delegate.Remove e che annulla il wrapping dei delegati che sono proxy di callback generici. Utilizzare questo metodo nelle implementazioni del metodo Unsubscribe.

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

Parametri

existing
Delegate

Delegato esistente da cui rimuovere il callback.

toRemove
Delegate

Callback da rimuovere.

Restituisce

Restituisce Delegate, che è un nuovo valore da assegnare al delegato esistente.

Si applica a