PowerShell.InvocationStateInfo Property

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)

'Usage
Dim instance As PowerShell
Dim value As PSInvocationStateInfo

value = instance.InvocationStateInfo

public PSInvocationStateInfo InvocationStateInfo { get; }
/** @property */
public PSInvocationStateInfo get_InvocationStateInfo ()

public function get InvocationStateInfo () : PSInvocationStateInfo

Property Value

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.


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


Show:
© 2014 Microsoft