ContextItemManager.RemoveCallback(Delegate, Delegate) 方法

定义

表示一个帮助器方法,该方法执行委托移除,并对作为泛型回调代理的委托进行解包。

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

参数

existing
Delegate

现有的委托。

toRemove
Delegate

要从 existing 中移除的委托。

返回

返回 Delegate,其中包含应分配给 existing 的新委托。

注解

Unsubscribe 方法的实现中使用此方法。

适用于