ContextItemManager.RemoveCallback(Delegate, Delegate) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.