Freigeben über


ForEachObjectCommand.UseNewRunspace Property

Definition

Gets or sets a flag so that a new runspace object is created for each loop iteration, instead of reusing objects from the runspace pool. By default, runspaces are reused from a runspace pool.

[System.Management.Automation.Parameter(ParameterSetName="ParallelParameterSet")]
public System.Management.Automation.SwitchParameter UseNewRunspace { get; set; }
[<System.Management.Automation.Parameter(ParameterSetName="ParallelParameterSet")>]
member this.UseNewRunspace : System.Management.Automation.SwitchParameter with get, set
Public Property UseNewRunspace As SwitchParameter

Property Value

Attributes

Applies to