TargetException Constructor (String^)
.NET Framework (current version)
Initializes a new instance of the TargetException class with the given message and the root cause exception.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- message
-
Type:
System::String^
A String describing the reason why the exception occurred.
TargetException inherits from the Exception. This constructor sets the properties of the Exception object as shown in the following table.
Property | Value |
|---|---|
null | |
The message string. |
.NET Framework
Available since 1.1
Available since 1.1
Show: