ContextItemManager.RemoveCallback(Delegate, Delegate) Metodo

Definizione

Rappresenta un metodo di supporto che esegue le rimozioni dei delegati e che annulla il wrapping dei delegati che sono proxy di callback generici.

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.

toRemove
Delegate

Delegato da rimuovere da existing.

Restituisce

Restituisce un Delegate che contiene il nuovo delegato che deve essere assegnato a quello existing.

Commenti

Utilizzare questo metodo nelle implementazioni del metodo Unsubscribe.

Si applica a