WebThreadInformation.StackTrace Property


Gets the current thread-managed stack trace.

Namespace:   System.Web.Management
Assembly:  System.Web (in System.Web.dll)

public string StackTrace { get; }

Property Value

Type: System.String

The thread-managed stack trace.

The following code example shows how to get the thread stack trace.

// Get the stack trace.
public string GetThreadStackTrace()
    return (string.Format(
        "Stack trace: {0}",

.NET Framework
Available since 2.0
Return to top