Click or drag to resize

IConnectionPoolClear Method (Boolean)

Clears the connection pool and marks it as paused.

Namespace:  MongoDB.Driver.Core.ConnectionPools
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
Syntax
void Clear(
	bool closeInUseConnections = false
)

Parameters

closeInUseConnections (Optional)
Type: SystemBoolean
Whether in use connections should be closed.
See Also