SqlDataConnection.CreateConnectionString() Method

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

Namespace: DevExpress.DataAccess.Sql

Assembly: DevExpress.DataAccess.v20.2.dll

Declaration

public override string CreateConnectionString()
Public Overrides Function CreateConnectionString As String

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