Delegate::Target Property

 

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

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

public:
property Object^ Target {
	Object^ get();
}

Property Value

Type: System::Object^

The object on which the current delegate invokes the instance method, if the delegate represents an instance method; null if the delegate represents a static 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.

ReflectionPermission

when invoked late-bound through mechanisms such as Type::InvokeMember. Associated enumeration: ReflectionPermissionFlag::MemberAccess

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: