PowerShell.RunspacePool PowerShell.RunspacePool PowerShell.RunspacePool Property


Sets an associated RunspacePool for this PowerShell instance. A Runspace from this pool is used whenever Invoke* method is called.

This can be null in which case a new runspace is created whenever Invoke* method is called.

public System.Management.Automation.Runspaces.RunspacePool RunspacePool { get; set; }
member this.RunspacePool : System.Management.Automation.Runspaces.RunspacePool with get, set
Public Property RunspacePool As RunspacePool
Property Value

Powershell instance cannot be changed in its current state.


This property and Runspace are mutually exclusive; setting one of them resets the other to null

Applies to