Back to Devexpress

ModuleBase.RequiredModuleTypes Property

expressappframework-devexpress-dot-expressapp-dot-modulebase.md

latest1.7 KB
Original Source

ModuleBase.RequiredModuleTypes Property

Provides access to the collection of modules that are added to the current module.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

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

Property Value

TypeDescription
DevExpress.ExpressApp.ModuleTypeList

A ModuleTypeList collection of modules used by the current module.

|

Remarks

Use this property to access the collection of the modules that are used by the current module. Use the Add method of the returned collection, to add a module to the current module directly. The following code demonstrates how to do this:

csharp
public sealed class MySolutionModule : ModuleBase {
   //...
   public MySolutionModule() {
      InitializeComponent();
      this.RequiredModuleTypes.Add(typeof(MyCustomModule.CustomModule));
   }
}

The added module(s) must also be referenced in the current module project.

See Also

ModuleBase Class

ModuleBase Members

DevExpress.ExpressApp Namespace