Back to Devexpress

XafApplication.Modules Property

expressappframework-devexpress-dot-expressapp-dot-xafapplication.md

latest2.7 KB
Original Source

XafApplication.Modules Property

Provides access to the module list used by the application.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
[Browsable(false)]
public ModuleList Modules { get; }
vb
<Browsable(False)>
Public ReadOnly Property Modules As ModuleList

Property Value

TypeDescription
DevExpress.ExpressApp.ModuleList

A ModuleList collection that contains all modules used in the current application.

|

Remarks

Use this property to add an extra module to the application. Alternatively you can use one of the approaches listed in the Ways to Register a Module topic.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Modules 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.

xaf-print-a-report-without-displaying-a-preview/CS/EFCore/InstantReportEF/InstantReportEF.Blazor.Server/Controllers/BlazorPrintContactsController.cs#L10

csharp
protected override void PrintReport(IReportDataV2 reportData) {
    ReportsModuleV2 reportsModule = ReportsModuleV2.FindReportsModule(Application.Modules);
    if (reportsModule != null && reportsModule.ReportsDataSourceHelper != null) {

See Also

Apply Different Configurations for Development and Production

XafApplication Class

XafApplication Members

DevExpress.ExpressApp Namespace