ServiceManager.GetTarget Method (Delegate)

.NET Framework (current version)

A helper method that returns the target object for a delegate. If the delegate was created to proxy a generic delegate, this will correctly return the original object, not the proxy.

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

protected static object GetTarget(
	Delegate callback


Type: System.Delegate

The delegate to get the target for.

Return Value

Type: System.Object

Returns Object, which is the callback target. This can return null if the callback represents a static object.

Exception Condition

callback is null.

.NET Framework
Available since 4.0
Return to top