Represents the exception thrown when a method invoked through reflection throws an exception.
Object
Exception
ApplicationException
TargetInvocationException
[Visual Basic] NotInheritable Public Class TargetInvocationException Inherits ApplicationException [C#] public sealed class TargetInvocationException : ApplicationException [C++] public __gc __sealed class TargetInvocationException : public ApplicationException [JScript] public class TargetInvocationException extends ApplicationException
When created, the TargetInvocationException is passed a reference to the exception thrown by the method invoked through reflection. The InnerException property holds the underlying exception.
Namespace: System.Reflection
Assembly: mscorlib.dll
TargetInvocationException Members | System.Reflection Namespace