Target Property
Collapse the table of content
Expand the table of content

Delegate.Target Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the class instance on which the current delegate invokes the instance method.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

'Declaration
Public ReadOnly Property Target As Object

Property Value

Type: System.Object
The object on which the current delegate invokes the instance method, if the delegate represents an instance method; Nothing if the delegate represents a static method.

ExceptionCondition
MethodAccessException

Application code attempts to access this member late-bound, for example, by using the Type.InvokeMember method.

An instance method is a method that is associated with an instance of a class; a static method is a method that is associated with the class itself.

If the delegate invokes one or more instance methods, this property returns the target of the last instance method in the invocation list.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft