ContextItemManager.RemoveCallback(Delegate, Delegate) Method

Definition

Represents a helper method that performs delegate removals and that unwraps delegates that are proxies to generic callbacks.

C#
protected static Delegate RemoveCallback(Delegate existing, Delegate toRemove);

Parameters

existing
Delegate

The existing delegate.

toRemove
Delegate

The delegate to be removed from existing.

Returns

Returns Delegate, which contains the new delegate that should be assigned to existing.

Remarks

Use this method in your implementations of the Unsubscribe method.

Applies to

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1