Mono Class Library: System.Reflection Namespace

System.Reflection.TargetInvocationException Class

Represents the error that occurs when a method invoked via reflection throws an exception. [Edit]

See Also: TargetInvocationException Members

System.Object
     System.Exception
          System.ApplicationException
               System.Reflection.TargetInvocationException

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

Thread Safety

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

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.
[Edit]

Requirements

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