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

Delegate.Target Property

 

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

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

public object Target { 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 4.5
.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:
© 2016 Microsoft