StackTrace Constructor (Exception)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Initializes a new instance of the StackTrace class by using the specified exception object.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- e
- Type: System.Exception
The exception object from which to construct the stack trace.
| Exception | Condition |
|---|---|
| ArgumentNullException | e is Nothing. |
The StackTrace is created with the caller's current thread, and does not contain file name, line number, or column information.
The resulting stack trace describes the stack at the time of the exception.
Show: