Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SimplePool.InitItems Method

Instantiates the supplied number of instances and adds them to the pool.

[Visual Basic]
Protected Sub InitItems( _
   ByVal initialInstances As Integer _
)
[C#]
protected void InitItems(
   int initialInstances
);

Parameters

initialInstances
The initial number of objects to build.

Exceptions

Exception Type Condition
ArgumentException If the supplied number of initialInstances is less than or equal to zero.

See Also

SimplePool Class | Spring.Pool.Support Namespace