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()
[C#]
object BorrowObject();

Return Value

An instance from the pool.

Remarks

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

Exceptions

Exception Type Condition
PoolException In case the pool is unusable.

See Also

IObjectPool Interface | Spring.Pool Namespace | ActivateObject