Skip to main content

SqlDataConnection.CreateConnectionString() Method

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

Namespace: DevExpress.DataAccess.Sql

Assembly: DevExpress.DataAccess.v23.1.dll

NuGet Package: DevExpress.DataAccess


public override string CreateConnectionString()


Type Description

A String value, specifying the connection string.


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