0 out of 3 rated this helpful - Rate this topic

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)
'Usage
Dim instance As CallStackFrame

public sealed class CallStackFrame
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()
{
  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


System.Object
  System.Management.Automation.CallStackFrame
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 Preview

Send comments about this topic to Microsoft.
Did you find this helpful?
(1500 characters remaining)