共用方式為


WebThreadInformation.StackTrace 屬性

定義

取得目前執行緒管理的堆疊追蹤。

public:
 property System::String ^ StackTrace { System::String ^ get(); };
public string StackTrace { get; }
member this.StackTrace : string
Public ReadOnly Property StackTrace As String

屬性值

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

適用於