Retrieves the stack trace, which is valuable for determining where the error occurred.
[Visual Basic] Overridable Public ReadOnly Property StackTrace As String [C#] public string StackTrace {virtual get;} [C++] public: __property virtual String* get_StackTrace(); [JScript] public function get StackTrace() : String;
The stack trace in String form.
By default, the stack trace is captured immediately before an exception object is thrown. However, the stack trace capture mode, as it is called, can be changed via the SetStackTraceCapture method of the System.Runtime class. The System.Runtime.GetStackTrace method of the Runtime class can be used to get the stack trace.