PowerShell.RunspacePool Property

Definition

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; }
Property Value
Exceptions

Powershell instance cannot be changed in its current state.

Object is disposed.

Remarks

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