StackTrace Constructor (Exception^, Boolean)
.NET Framework (current version)
Initializes a new instance of the StackTrace class, using the provided exception object and optionally capturing source information.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- e
-
Type:
System::Exception^
The exception object from which to construct the stack trace.
- fNeedFileInfo
-
Type:
System::Boolean
true to capture the file name, line number, and column number; otherwise, false.
| Exception | Condition |
|---|---|
| ArgumentNullException | The parameter e is null. |
The resulting stack trace describes the stack at the time of the exception.
Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 10
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show: