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