Windows desktop applications
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PowerShell.InvocationStateInfo Property

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Gets information about the current state of the invocation of the pipeline, such as whether it is running, completed, or failed. This property is introduced in Windows PowerShell 2.0.

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

public PSInvocationStateInfo InvocationStateInfo { get; }

Property Value

Type: System.Management.Automation.PSInvocationStateInfo

A PSInvocationStateInfo object that contains information about the current state of the invocation of the pipeline, such as whether it is running, completed, or failed. If the pipeline has failed, the reason for that failure can also be accessed through this property.

To invoke the pipeline synchronously, call the Invoke method. To invoke the pipeline asynchronously, call the BeginInvoke method.

Return to top

Community Additions

Show:
© 2016 Microsoft