CallStackFrame Class
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Defines a single item of the call stack. Each item in the call stack is referred to as a frame. This class is introduced in Windows PowerShell 2.0.
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation)
System.Management.Automation Namespace
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation)
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()
{
Get-PSCallStack
}
function g()
{
f
}
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
Windows Developer Preview, Windows Server Developer PreviewReference
CallStackFrame MembersSystem.Management.Automation Namespace
Other Resources
Windows PowerShell SDKSend comments about this topic to Microsoft.