System.Reflection.TargetException Class
Represents the error that occurs when an attempt is made to invoke a member on an invalid target.

See Also: TargetException Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public class TargetException : ApplicationException

Remarks

Note: A System.Reflection.TargetException is thrown when an attempt is made to invoke a non-static method using a null object. This exception can also be thrown if the target does not implement the member.

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0