StackTrace Constructor

StackTrace Constructor

[ 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 from the caller's frame.

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

public StackTrace()

The StackTrace is created with the caller's current thread, and does not contain file name, line number, or column information.

Use this default constructor when you want a complete trace with only summary method information about the call stack.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft