System.Diagnostics.StackTrace.GetFrame Method

Gets the specified stack frame.

Syntax

public virtual StackFrame GetFrame (int index)

Parameters

index
The index of the stack frame requested.

Returns

The specified stack frame.

Remarks

Stack frames are numbered starting at 0, which is the last stack frame pushed.

Requirements

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