Sdílet prostřednictvím


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:
 property System::Management::Automation::Runspaces::RunspacePool ^ RunspacePool { System::Management::Automation::Runspaces::RunspacePool ^ get(); void set(System::Management::Automation::Runspaces::RunspacePool ^ value); };
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

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

Applies to