Skip to main content

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.v24.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