Mono Class Library: System.Reflection.TargetInvocationException Overview | Members

System.Reflection.TargetInvocationException Constructor

Constructs and initializes a new instance of the System.Reflection.TargetInvocationException class.

public TargetInvocationException (Exception inner)

Parameters

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.

Remarks

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.

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0