Skip to main content
All docs
V25.1
  • MongoDBDataSourceUIHelper.ConfigureConnection<TModel>(MongoDBDataSourceBase, ConfigureMongoDBConnectionContext, Action<IWizardCustomization<TModel>>) Method

    Invokes the Connection Editor with the specified settings and customization parameters for the MongoDB Data Source.

    Namespace: DevExpress.DataAccess.UI.MongoDB

    Assembly: DevExpress.DataAccess.v25.1.UI.dll

    NuGet Package: DevExpress.DataAccess.UI

    Declaration

    public static bool ConfigureConnection<TModel>(
        this MongoDBDataSourceBase dataSource,
        ConfigureMongoDBConnectionContext context,
        Action<IWizardCustomization<TModel>> customizeWizard
    )
        where TModel : class, IMongoDBDataSourceModel, new()

    Parameters

    Name Type Description
    dataSource MongoDBDataSourceBase

    A MongoDB data source.

    context DevExpress.DataAccess.UI.MongoDB.ConfigureMongoDBConnectionContext

    An object that contains settings for the editor.

    customizeWizard Action<IWizardCustomization<TModel>>

    A method that customizes the editor.

    Type Parameters

    Name Description
    TModel

    A class that implements the IMongoDBDataSourceModel interface.

    Returns

    Type Description
    Boolean

    true if a user clicked the Finish button to close the editor; otherwise, false.

    See Also