Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
TargetInvocationException Class
Collapse the table of content
Expand the table of content

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.


[Visual Basic]
NotInheritable Public Class TargetInvocationException
   Inherits ApplicationException
public sealed class TargetInvocationException :
public __gc __sealed class TargetInvocationException : public
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.


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.


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

© 2015 Microsoft