Share via


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)

Syntax

'Declaration
Public Overridable ReadOnly Property StackTrace As String
public virtual string StackTrace { get; }
public:
virtual property String^ StackTrace {
    String^ get ();
}
abstract StackTrace : string with get
override StackTrace : string with get
function get StackTrace () : String

Property Value

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

Remarks

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.

.NET Framework Security

See Also

Reference

Exception Class

System Namespace