Επεξεργασία

Κοινή χρήση μέσω


ContextItemManager.RemoveCallback(Delegate, Delegate) Method

Definition

Represents a helper method that performs delegate removals and that unwraps delegates that are proxies to generic callbacks.

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

Parameters

existing
Delegate

The existing delegate.

toRemove
Delegate

The delegate to be removed from existing.

Returns

Returns Delegate, which contains the new delegate that should be assigned to existing.

Remarks

Use this method in your implementations of the Unsubscribe method.

Applies to