Initializes an instance of the TargetException class with the given message and the root cause exception.
[Visual Basic] Overloads Public Sub New( _ ByVal message As String _ ) [C#] public TargetException( string message ); [C++] public: TargetException( String* message ); [JScript] public function TargetException( message : String );
TargetException inherits from the Exception. This constructor sets the properties of the Exception object as follows:
Property | Value |
---|---|
InnerException | null |
Message | The message string. |
TargetException Class | TargetException Members | System.Reflection Namespace | TargetException Constructor Overload List