ContextItemManager.RemoveCallback(Delegate, Delegate) 方法

定義

代表 Helper 方法,這個方法會執行委派移除,也會取消包裝泛型回呼 Proxy 的委派。

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 方法實作中使用這個方法。

適用於