Skip to main content

DefaultReportDesignerContainer.RegisterObjectDataSourceConstructorFilterService<T>() Method

Registers a class that implements the IObjectDataSourceConstructorFilterService interface to filter type constructors in the Report Wizard and Data Source Wizard.

Namespace: DevExpress.XtraReports.Web.ReportDesigner

Assembly: DevExpress.XtraReports.v23.2.Web.dll

NuGet Package: DevExpress.Web.Reporting.Common

Declaration

public static void RegisterObjectDataSourceConstructorFilterService<T>()
    where T : IObjectDataSourceConstructorFilterService

Type Parameters

Name Description
T

The type of the class that implements the IObjectDataSourceConstructorFilterService interface.

Remarks

A class that implements the IObjectDataSourceConstructorFilterService interface produces a filtered list of type constructors for the Report Wizard and Data Source Wizard. The RegisterObjectDataSourceConstructorFilterService<T>() method registers this class. Call this method at the application’s start.

A registered class should provide a complete list of constructors that are invoked to create an object data source. Classes passed in previous RegisterObjectDataSourceConstructorFilterService<T>() method calls are unregistered when you call this method again.

If the type’s constructor list is not provided or an IObjectDataSourceConstructorFilterService interface is not implemented or registered, the Report Wizard and Data Source Wizard display all constructors.

Tip

The following topics describe how to implement and register the IObjectDataSourceConstructorFilterService interface to filter type constructors:

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the RegisterObjectDataSourceConstructorFilterService<T>() method.

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