Windows apps
Collapse the table of content
Expand the table of content

StackTrace Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets a string representation of the immediate frames on the call stack.

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

public virtual string StackTrace { get; }

Property Value

Type: System..::..String
A string that describes the immediate frames of the call stack.

The execution stack keeps track of all the methods that are in execution at a given instant. A trace of the method calls is called a stack trace. The stack trace listing provides a way to follow the call stack to the line number in the method where the exception occurs.

Show:
© 2017 Microsoft