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

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.v19.1.dll

Declaration

public SqlDataConnection(
    string name,
    DataConnectionParametersBase connectionParameters
)

Parameters

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.

Note

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