public ref class TargetInvocationException sealed : Exception
public ref class TargetInvocationException sealed : ApplicationException
public sealed class TargetInvocationException : Exception
public sealed class TargetInvocationException : ApplicationException
[System.Serializable]
public sealed class TargetInvocationException : ApplicationException
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class TargetInvocationException : ApplicationException
type TargetInvocationException = class
    inherit Exception
type TargetInvocationException = class
    inherit ApplicationException
[<System.Serializable>]
type TargetInvocationException = class
    inherit ApplicationException
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type TargetInvocationException = class
    inherit ApplicationException
Public NotInheritable Class TargetInvocationException
Inherits Exception
Public NotInheritable Class TargetInvocationException
Inherits ApplicationException
TargetInvocationException

有关详细信息,请参阅 Invoke

TargetInvocationException 使用具有0x80131604值的 HRESULT COR_E_TARGETINVOCATION。

创建后, TargetInvocationException 将传递对通过反射调用的方法引发的异常的引用。 属性 InnerException 保存基础异常。