System.Reflection.TargetInvocationException Class
Represents the error that occurs when a method invoked via reflection throws an exception.

See Also: TargetInvocationException Members

Syntax

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

Remarks

The TargetInvocationException constructors are passed a reference to the exception thrown by the invoked method.
Note: The TargetInvocationException.InnerException property inherited from Exception holds the exception.

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