ForEachObjectCommand.UseNewRunspace Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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