Skip to main content
A newer version of this page is available. .

SqlDataConnection.CreateConnectionString(Boolean) Method

Generates a connection string out of the connection parameters assigned to the SqlDataConnection (with or without including user credentials into the connection string).

Namespace: DevExpress.DataAccess.Sql

Assembly: DevExpress.DataAccess.v18.2.dll

Declaration

public string CreateConnectionString(
    bool blackoutCredentials
)

Parameters

Name Type Description
blackoutCredentials Boolean

true, to remove user credentials from the connection string; otherwise, false.

Returns

Type Description
String

A String value, specifying the connection string.

Remarks

When SqlDataConnection uses CustomStringConnectionParameters, the CreateConnectionString method will assign the resulting string to the SqlDataConnection.ConnectionString property.

See Also