共用方式為


RunspacePool.SetMinRunspaces(Int32) Method

Definition

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.

Applies to