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 メソッドの実装にはこのメソッドを使用します。

適用対象