Initializes a new TargetInvocationException with an empty message string and the root cause of the exception.
[Visual Basic] Overloads Public Sub New( _ ByVal inner As Exception _ ) [C#] public TargetInvocationException( Exception inner ); [C++] public: TargetInvocationException( Exception* inner ); [JScript] public function TargetInvocationException( inner : Exception );
The TargetInvocationException is the exception classs that shows when a class or method was not located.
TargetInvocationException inherits from the Exception. This constructor sets the properties of the Exception object as follows:
Property | Value |
---|---|
InnerException | null |
Message | The empty string. |
TargetInvocationException Class | TargetInvocationException Members | System.Reflection Namespace | TargetInvocationException Constructor Overload List