Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IObjectPool.BorrowObject Method

Obtain an instance from the pool.

[Visual Basic]
Public Sub BorrowObject()
object BorrowObject();

Return Value

An instance from the pool.


By contract, clients must return the borrowed instance using ReturnObject or a related method as defined in an implementation or sub-interface.


Exception Type Condition
PoolException In case the pool is unusable.

See Also

IObjectPool Interface | Spring.Pool Namespace | ActivateObject