Skip to main content

SqlDataConnection(String, DataConnectionParametersBase) Constructor

Initializes a new instance of the SqlDataConnection class with the specified connection name and parameters.

Namespace: DevExpress.DataAccess.Sql

Assembly: DevExpress.DataAccess.v22.2.dll

NuGet Package: DevExpress.DataAccess


public SqlDataConnection(
    string name,
    DataConnectionParametersBase connectionParameters


Name Type Description
name String

A String value, specifying the connection name. This value is assigner to the DataConnectionBase.Name property.

connectionParameters DataConnectionParametersBase

A DataConnectionParametersBase descendant. This value is assigned to the SqlDataConnection.ConnectionParameters property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SqlDataConnection(String, DataConnectionParametersBase) constructor.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also