RunspacePool.SetMinRunspaces(Int32) Method
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.
Sets the minimum number of Runspaces that the pool maintains in anticipation of new requests.
public:
bool SetMinRunspaces(int minRunspaces);
public:
bool SetMinRunspaces(int minRunspaces);
bool SetMinRunspaces(int minRunspaces);
public bool SetMinRunspaces (int minRunspaces);
member this.SetMinRunspaces : int -> bool
Public Function SetMinRunspaces (minRunspaces As Integer) As Boolean
Parameters
- minRunspaces
- Int32
The minimum number of runspaces in the pool.
Returns
true if the change is successful; otherwise, false.
Remarks
You cannot set the number of idle runspaces to a number smaller than 1 or greater than maximum number of active runspaces.