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.

PowerShellProcessInstance Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Represents an instance of a Windows PowerShell process. This class cannot be inherited. Introduced in Windows PowerShell 3.0.

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

System.Object
  System.Management.Automation.Runspaces.PowerShellProcessInstance

public sealed class PowerShellProcessInstance : IDisposable

NameDescription
System_CAPS_pubmethodPowerShellProcessInstance()

Initializes a new instance of the PowerShellProcessInstance class using the default constructor. Introduced in Windows PowerShell 3.0.

System_CAPS_pubmethodPowerShellProcessInstance(Version, PSCredential, ScriptBlock, Boolean)

Initializes a new instance of the PowerShellProcessInstance class using the Windows PowerShell version, the user credential, and an initialization script. Introduced in Windows PowerShell 3.0.

NameDescription
System_CAPS_pubpropertyHasExited

Gets a value that indicates whether the associated process has been terminated. Introduced in Windows PowerShell 3.0.

System_CAPS_pubpropertyProcess

Gets the Windows PowerShell process that is encapsulated in this class. Introduced in Windows PowerShell 3.0.

NameDescription
System_CAPS_pubmethodDispose()

Releases all resources used by the PowerShellProcessInstance. Introduced in Windows PowerShell 3.0.

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.)

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: