ServiceManager.RemoveCallback Method (Delegate, Delegate)

.NET Framework (current version)

A helper method that performs a Delegate.Remove operation, and unwraps delegates that are proxies to generic callbacks. You should use this method in your Overload:System.Activities.Presentation.ServiceManager.UnSubscribe implementations.

Namespace:   System.Activities.Presentation
Assembly:  System.Activities.Presentation (in System.Activities.Presentation.dll)

protected static Delegate RemoveCallback(
	Delegate existing,
	Delegate toRemove


Type: System.Delegate

The existing delegate to remove the callback from.

Type: System.Delegate

The callback to remove.

Return Value

Type: System.Delegate

Returns Delegate, which is a new value to assign to the existing delegate.

.NET Framework
Available since 4.0
Return to top