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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.