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.v20.2.dll

Declaration

public string CreateConnectionString(
    bool blackoutCredentials
)
Public Function CreateConnectionString(
    blackoutCredentials As Boolean
) As String

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