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.
Applies to
Colaborați cu noi pe GitHub
Sursa pentru acest conținut poate fi găsită pe GitHub, unde puteți, de asemenea, să creați și să consultați probleme și solicitări de tragere. Pentru mai multe informații, consultați ghidul nostru pentru colaboratori.