System.Diagnostics.StackFrame Class

Provides information about a System.Diagnostics.StackFrame, which represents a function call on the call stack for the current thread.

See Also: StackFrame Members


public class StackFrame


A System.Diagnostics.StackFrame is created and pushed on the call stack for every function call made during the execution of a thread. The stack frame always includes System.Reflection.MethodBase information, and optionally includes file name, line number, and column number information.

System.Diagnostics.StackFrame information will be most informative with Debug build configurations. By default, Debug builds include debug symbols, while Release builds do not. The debug symbols contain most of the file, method name, line number, and column information used in constructing System.Diagnostics.StackFrame objects.


Namespace: System.Diagnostics
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0,,