StackTrace Constructor (Exception)

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.

Namespace:  System.Diagnostics
Assembly:  mscorlib (in mscorlib.dll)

'Declaration
Public Sub New ( _
	e As Exception _
)

Parameters

e
Type: System.Exception
The exception object from which to construct the stack trace.

ExceptionCondition
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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft