ContextItemManager.RemoveCallback(Delegate, Delegate) Metodo

Definizione

Rappresenta un metodo helper che esegue le rimozioni dei delegati e che annulla il wrapping dei delegati che sono proxy ai 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.

Valori restituiti

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

Commenti

Usare questo metodo nelle implementazioni del Unsubscribe metodo .

Si applica a