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

SqlDataConnection.CreateConnectionString() Method

Generates a connection string out of the connection parameters assigned to the SqlDataConnection.

Namespace: DevExpress.DataAccess.Sql

Assembly: DevExpress.DataAccess.v18.2.dll

Declaration

public override string CreateConnectionString()

Returns

Type Description
String

A String value, specifying the connection string.

Remarks

Calling CreateConnectionString after the SqlDataConnection.BlackoutCredentials method call will exclude the user name and password from the resulting connection string.

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

See Also