Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IObjectPool.AddObject Method

Create an object using the factory set by the PoolableObjectFactory property or other implementation dependent mechanism and place it into the pool.

[Visual Basic]
Public Sub AddObject()
void AddObject();


This is an optional operation. AddObject is useful for "pre-loading" a pool with idle objects.


Exception Type Condition
NotSupportedException If the implementation does not support the operation.

See Also

IObjectPool Interface | Spring.Pool Namespace