ServiceManager.RemoveCallback(Delegate, Delegate) ServiceManager.RemoveCallback(Delegate, Delegate) ServiceManager.RemoveCallback(Delegate, Delegate) ServiceManager.RemoveCallback(Delegate, Delegate) Method

定義

Delegate.Remove 操作を実行し、汎用コールバックのプロキシであるデリゲートのラップを解除するヘルパー メソッド。A helper method that performs a Delegate.Remove operation, and unwraps delegates that are proxies to generic callbacks. Unsubscribe の実装にはこのメソッドを使用してください。You should use this method in your Unsubscribe implementations.

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 Delegate Delegate Delegate

コールバックの削除元となる既存のデリゲート。The existing delegate to remove the callback from.

toRemove
Delegate Delegate Delegate Delegate

削除するコールバック。The callback to remove.

戻り値

既存のデリゲートに割り当てられる新しい値となる、Delegate を返します。Returns Delegate, which is a new value to assign to the existing delegate.

適用対象