共用方式為


ServiceManager.RemoveCallback(Delegate, Delegate) 方法

定義

Helper 方法,這個方法會執行 Delegate.Remove 作業,並且取消包裝泛型回呼 Proxy 的委派。 請在您的 Unsubscribe 實作中使用這個方法。

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

要移除的回呼。

傳回

Delegate傳回 ,這是要指派給現有委派的新值。

適用於