ServiceManager.GetTarget Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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.Design
Assembly:  System.Activities.Design.Base (in System.Activities.Design.Base.dll)

Syntax

'Declaration
Protected Shared Function GetTarget ( _
    callback As Delegate _
) As Object
'Usage
Dim callback As [Delegate]
Dim returnValue As Object

returnValue = ServiceManager.GetTarget(callback)
protected static Object GetTarget(
    Delegate callback
)
protected:
static Object^ GetTarget(
    Delegate^ callback
)
protected static function GetTarget(
    callback : Delegate
) : Object
static member GetTarget : 
        callback:Delegate -> Object 

Parameters

Return Value

Type: System.Object
Returns Object, which is the callback target. This can return nulla null reference (Nothing in Visual Basic) if the callback represents a static object.

Exceptions

Exception Condition
ArgumentNullException

callback is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 4

See Also

Reference

ServiceManager Class

ServiceManager Members

System.Activities.Design Namespace