PSInvocationStateInfo Class
TOC
Collapse the table of content
Expand the table of content

PSInvocationStateInfo Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Provides information about the current state of the invocation process, such as what the current state is and, if a failure occurred, the reason for the last state change. This class is introduced in Windows PowerShell 2.0.

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

System.Object
  System.Management.Automation.PSInvocationStateInfo

public sealed class PSInvocationStateInfo

NameDescription
System_CAPS_pubpropertyReason

Gets the reason for the last state change if the state changed because of an error. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertyState

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

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

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

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

Return to top
Show:
© 2016 Microsoft