State Property
Collapse the table of content
Expand the table of content

PSInvocationStateInfo.State Property


Updated: April 27, 2016

Applies To: Windows PowerShell

Gets the current state of the invocation of the command pipeline. This property is introduced in Windows PowerShell 2.0.

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

public PSInvocationState State { get; }

Property Value

Type: System.Management.Automation.PSInvocationState

One of the PSInvocationState enumeration values that describes the current state of the command pipeline invocation.

This information can be accessed through the PowerShell.InvocationStateInfo property.

Return to top

Community Additions

© 2016 Microsoft