IDataObjectPool.SetMaximumPoolSize(Int32, 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.
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.