Export (0) Print
Expand All

CallStackFrame Class

A call stack item returned by the Get-PSCallStack cmdlet. This class is introduced in Windows PowerShell 2.0.

Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)

Dim instance As CallStackFrame

public ref class CallStackFrame sealed
public final class CallStackFrame
public final class CallStackFrame

For example, the following is a script and its associated call stack. Notice that this call stack has four frames.

PS D:\scripts> cat .\MyScript.ps1
function f()

function g()

PS D:\nam\scripts> .\MyScript.ps1

Command        Arguments          Location         
-------        ---------          --------         
f              {}                 MyScript.ps1: Line 3
g              {}                 MyScript.ps1: Line 8
MyScript.ps1   {}                 MyScript.ps1: Line 11
prompt         {}                 prompt


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


Target Platforms

© 2015 Microsoft