Language
Edit

IDataObjectPool.SetMaximumPoolSize(Int32, Boolean) Method

Definition

Establish the maximum number of items to allow in the data object pool.

public void SetMaximumPoolSize(int maxSize, bool resizeNow);
abstract member SetMaximumPoolSize : int * bool -> unit
Public Sub SetMaximumPoolSize (maxSize As Integer, resizeNow As Boolean)

Parameters

maxSize
Int32

The new maximum size.

resizeNow
Boolean

Whether to resize all at once, or as items are added/removed.

Remarks

This maximum size is for the combination of unused objects and prefetched objects.

Applies to