RunspacePool.SetMaxRunspaces(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 maximum number of Runspaces that can be active concurrently in the pool. All requests above that number remain queued until runspaces become available.
public:
bool SetMaxRunspaces(int maxRunspaces);
public:
bool SetMaxRunspaces(int maxRunspaces);
bool SetMaxRunspaces(int maxRunspaces);
public bool SetMaxRunspaces (int maxRunspaces);
member this.SetMaxRunspaces : int -> bool
Public Function SetMaxRunspaces (maxRunspaces As Integer) As Boolean
Parameters
- maxRunspaces
- Int32
The maximum number of runspaces in the pool.
Returns
true if the change is successful; otherwise, false.
Remarks
You cannot set the number of runspaces to a number smaller than the minimum runspaces.