# GetAvailableItem Method Gets the first available item from the pool and sets its lock. ## Definition **Namespace:** CapyKit **Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+6cdd805be49c3b769a116584ea6904955ecd820d **C#** ``` C# public PoolItem GetAvailableItem() ``` **VB** ``` VB Public Function GetAvailableItem As PoolItem(Of T) ``` **C++** ``` C++ public: PoolItem^ GetAvailableItem() ``` **F#** ``` F# member GetAvailableItem : unit -> PoolItem<'T> ``` #### Return Value PoolItem(T) The first available item from the pool. ## See Also #### Reference Pool(T) Class CapyKit Namespace