TargetInvocationException Class
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.
System.Object
System.Exception
System.ApplicationException
System.Reflection.TargetInvocationException
[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
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Remarks
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.
Requirements
Namespace: System.Reflection
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)
See Also
TargetInvocationException Members | System.Reflection Namespace | InnerException | Exception | Handling and Throwing Exceptions