Sdílet prostřednictvím


PowerShellProcessInstance Class

Definition

This class represents a PowerShell process that is used for an out-of-process remote Runspace.

public ref class PowerShellProcessInstance sealed : IDisposable
public sealed class PowerShellProcessInstance : IDisposable
type PowerShellProcessInstance = class
    interface IDisposable
Public NotInheritable Class PowerShellProcessInstance
Implements IDisposable
Inheritance
PowerShellProcessInstance
Implements

Constructors

PowerShellProcessInstance()

Initializes a new instance of the PowerShellProcessInstance class. Default initializes the underlying dotnet process class.

PowerShellProcessInstance(Version, PSCredential, ScriptBlock, Boolean, String)

Initializes a new instance of the PowerShellProcessInstance class. Initializes the underlying dotnet process class.

PowerShellProcessInstance(Version, PSCredential, ScriptBlock, Boolean)

Initializes a new instance of the PowerShellProcessInstance class. Initializes the underlying dotnet process class.

Properties

HasExited

Gets a value indicating whether the associated process has been terminated. true if the operating system process referenced by the Process component has terminated; otherwise, false.

Process

Gets the process object of the remote target.

Methods

Dispose()

Implementing the IDisposable interface.

Applies to