Freigeben über


RunspacePool.SetMaxRunspaces(Int32) Method

Definition

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.

Applies to