Constructs and initializes a new instance of the System.Reflection.TargetInvocationException class.
- inner
- The Exception that is the cause of the current exception. If the inner parameter is not null, the current exception was raised as a result of the inner exception being thrown by a method invoked via reflection.
This constructor initializes the TargetInvocationException.Message property of the new instance to a system-supplied message that describes the error, such as "Exception has been thrown by the target of an invocation." This message takes into account the current system culture.
Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0