Item Manager. Remove Callback(Delegate, Delegate) Method
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
The existing delegate.
The delegate to be removed from
Returns Delegate, which contains the new delegate that should be assigned to
Use this method in your implementations of the Unsubscribe method.