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)
Syntax
Public ReadOnly Property Target As Object
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; nullNothingnullptra null reference (Nothing in Visual Basic) if the delegate represents a static method.
Exceptions
Exception | Condition |
---|---|
MethodAccessException | Application code attempts to access this member late-bound, for example, by using the Type..::.InvokeMember 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.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0
Platforms
Windows Phone