TraceEventCache.Callstack Property


Gets the call stack for the current thread.

Namespace:   System.Diagnostics
Assembly:  System (in System.dll)

public string Callstack { get; }

Property Value

Type: System.String

A string containing stack trace information. This value can be an empty string ("").

The Callstack property gets the call stack from the StackTrace property of the Environment class. The property value lists method calls in reverse chronological order. That is, the most recent method call is described first. One line of stack trace information is listed for each method call on the stack. For more information, see StackTrace.


for full access to the resource protected by the permission. Associated enumeration: PermissionState.Unrestricted

.NET Framework
Available since 2.0
Return to top