WebThreadInformation.StackTrace 属性    
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取当前的线程管理的堆栈跟踪。
public:
 property System::String ^ StackTrace { System::String ^ get(); };
	public string StackTrace { get; }
	member this.StackTrace : string
	Public ReadOnly Property StackTrace As String
	属性值
线程管理的堆栈跟踪。
示例
下面的代码示例演示如何获取线程堆栈跟踪。
// Get the stack trace.
public string GetThreadStackTrace()
{
    return (string.Format(
        "Stack trace: {0}",
        ThreadInformation.StackTrace));
}
' Get the stack trace.
Public Function GetThreadStackTrace() As String
     Return String.Format( _
     "Stack trace: {0}", _
     ThreadInformation.StackTrace)
End Function 'GetThreadStackTrace