SqlDataSourceUIHelper.ConfigureConnection(SqlDataSource, UserLookAndFeel, IWin32Window, IConnectionStorageService) Method

Obsolete. Invokes the Connection Editor with the specified settings.

Namespace: DevExpress.DataAccess.UI.Sql

Assembly: DevExpress.DataAccess.v20.2.UI.dll

Declaration

[Obsolete("This overload is obsolete now. Use ConfigureConnection(this SqlDataSource sqlDataSource, ConfigureConnectionContext context) instead.")]
public static bool ConfigureConnection(
    this SqlDataSource sqlDataSource,
    UserLookAndFeel lookAndFeel,
    IWin32Window owner,
    IConnectionStorageService connectionStorageService
)
<Obsolete("This overload is obsolete now. Use ConfigureConnection(this SqlDataSource sqlDataSource, ConfigureConnectionContext context) instead.")>
<ExtensionAttribute>
Public Shared Function ConfigureConnection(
    sqlDataSource As SqlDataSource,
    lookAndFeel As UserLookAndFeel,
    owner As IWin32Window,
    connectionStorageService As IConnectionStorageService
) As Boolean

Parameters

Name Type Description
sqlDataSource SqlDataSource

A SqlDataSource object, specifying the database connection.

lookAndFeel UserLookAndFeel

A UserLookAndFeel object, specifying the application's look and feel settings.

owner IWin32Window

An object implementing the IWin32Window interface that is the owner of the current dialog window.

connectionStorageService IConnectionStorageService

An object implementing the IConnectionStorageService interface.

Returns

Type Description
Boolean

true, if the dialog was finished by clicking the Finish button; otherwise, false.

Remarks

The following image illustrates the Connection Editor invoked by calling the ConfigureConnection method.

data-access-sql-data-source-ui-helper-connection-editor

The Connection Editor allows an end-user to either specify connection parameters manually, or select an existing connection from the list. If the first option is selected, the next page of the dialog becomes available, prompting an end-user to specify the required connection settings.

data-access-sql-data-source-ui-helper-connection-parameters-editor

See Also