Constructs and initializes a new instance of the System.Reflection.TargetInvocationException class.
- message
- A string that describes the error. The content of message is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.
- inner
- The Exception that is the cause of the current exception. If inner is not null, the current exception was raised as a result of inner being thrown by a method invoked via reflection.
This constructor initializes the TargetInvocationException.Message property of the new instance using message, and the TargetInvocationException.InnerException property using inner. If message is null, the TargetInvocationException.Message property is initialized 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.
Note: For information on inner exceptions, see Exception.InnerException.
Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0