TraceEventCache.Callstack Property

 
System_CAPS_noteNote

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 call stack for the current thread.

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

Public ReadOnly Property Callstack As String

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.

EnvironmentPermission

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

.NET Framework
Available since 2.0
Return to top
Show: