ConfigureDataConnectionEventArgs.ConnectionParameters Property
Gets or sets parameters used to establish a connection to data.
Namespace: DevExpress.DataAccess.Sql
Assembly: DevExpress.DataAccess.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
DataConnectionParametersBase | A DataConnectionParametersBase descendant that contains parameters used to establish a connection to data. |
Remarks
The ConnectionParameters property specifies a DataConnectionParametersBase descendant that provides parameters required to establish a connection to data (for instance, the server name, the database name, user credentials, the path to a data file, etc).
Different DataConnectionParametersBase descendants provide connection parameters for different DBMS and data file formats. For instance, MsSqlConnectionParameters, OracleConnectionParameters, XmlFileConnectionParameters and many other classes are available.
To edit the current connection parameters, cast the returned DataConnectionParametersBase object to an appropriate descending type and then adjust the parameters. To change the data provider, create an object of an appropriate descending type, customize the parameters and assign the created object to the ConnectionParameters property.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the ConnectionParameters property.
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.