WebThreadInformation.StackTrace Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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