IDataObjectPool.GetObjectFromPool(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get an object from the pool, with option to forfeit a prefetched object
public object GetObjectFromPool(bool canReusePrefetchObject = true);
abstract member GetObjectFromPool : bool -> obj
Public Function GetObjectFromPool (Optional canReusePrefetchObject As Boolean = true) As Object
Parameters
- canReusePrefetchObject
- Boolean
If no unused items are found, allow re-use of an existing prefetched item.
Returns
The object to re-use.
Remarks
If canReusePrefetchedObject is true and there are no unused objects, then it will forfeit one of the prefetched objects to satisfy the request.
Note that there is not currently a least-recently-used, or least likely to be used algorithm for forfeiting a pre-fetched object.