Export (0) Print
Expand All

Delegate.Target Property

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

[Visual Basic]
Public ReadOnly Property Target As Object
[C#]
public object Target {get;}
[C++]
public: __property Object* get_Target();
[JScript]
public function get Target() : Object;

Property Value

The object on which the current delegate invokes the instance method, if the delegate represents an instance method.

-or-

A null reference (Nothing in Visual Basic), if the delegate represents a static method.

Remarks

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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Common Language Infrastructure (CLI) Standard

.NET Framework Security: 

See Also

Delegate Class | Delegate Members | System Namespace

Show:
© 2014 Microsoft