.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

XpoDefault.GetConnectionPoolString(String, Int32) Method

Gets a connection pool's connection string based on a specified standard connection string and pool capacity.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v20.1.dll

Declaration

public static string GetConnectionPoolString(
    string connectionString,
    int poolSize
)
Public Shared Function GetConnectionPoolString(
    connectionString As String,
    poolSize As Integer
) As String

Parameters

Name Type Description
connectionString String

A String value which specifies the parameters required to establish a connection.

poolSize Int32

A connection pool's capacity (the number of connections to be made available within the pool).

Returns

Type Description
String

A String value which specifies the parameters needed to establish a connection pool's connection.

Remarks

This function calls the other GetConnectionPoolString overloaded function with null (Nothing in Visual Basic) passed as the maxConnections parameter.

See Also