The exception that is thrown by methods invoked through reflection. This class cannot be inherited.
For a list of all members of this type, see TargetInvocationException Members.
[Visual Basic] <Serializable> NotInheritable Public Class TargetInvocationException Inherits ApplicationException [C#] [Serializable] public sealed class TargetInvocationException : ApplicationException [C++] [Serializable] public __gc __sealed class TargetInvocationException : public ApplicationException [JScript] public Serializable class TargetInvocationException extends ApplicationException
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
TargetInvocationException uses the HRESULT COR_E_TARGETINVOCATION which has the value 0x80131604.
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.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework
Assembly: Mscorlib (in Mscorlib.dll)