Skip to main content
.NET Framework 4.5.2+

ModuleBase Members

The base class for XAF modules.

Constructors

Name Description
ModuleBase() Creates a new instance of the ModuleBase class.

Fields

Name Description
EmptyModules static Represents an empty collection of type ModuleBase.
VersionComponentsCount static For internal use.

Properties

Name Description
AdditionalControllerTypes Contains manually specified Controllers to be loaded to the Application Model.
AdditionalExportedTypes Contains manually specified business classes to be loaded to the Application Model.
Application Provides access to an XafApplication object that can be used to manage the current application.
AssemblyName For internal use only.
CanRaiseEvents protected Gets a value indicating whether the component can raise an event. Inherited from Component.
Container Gets the IContainer that contains the Component. Inherited from Component.
Description Specifies a textual description of a module.
DiffsStore For internal use.
Events protected Gets the list of event handlers that are attached to this Component. Inherited from Component.
ModelDifferenceResourceName This property is intended for internal use.
ModelVersion For internal use.
ModuleManager Provides access to the ApplicationModulesManager object, which contains information on the modules currenly added to the application.
Name Gets the full name of a module’s type.
RequiredModuleTypes Provides access to the collection of modules that are added to the current module via the Module Designer.
ResourcesExportedToModel Provides access to a collection of Resource Localizers used in the current module to extend the Application Model’s IModelLocalization node.
Site Gets or sets the ISite of the Component. Inherited from Component.
Version Gets the major, minor, revision, and build numbers of a module’s assembly.

Methods

Name Description
AddGeneratorUpdaters(ModelNodesGeneratorUpdaters) Registers the Generator Updaters. These are classes, used to customize the Application Model‘s zero layer after it has been generated.
AddModelNodeUpdaters(IModelNodeUpdaterRegistrator) Registers node updaters in the application.
AddModelNodeValidators(IModelNodeValidatorRegistrator) This method is intended for internal use.
CreateModule(Type, ModelStoreBase) static Creates an XAF module instance of the specified type.
CustomizeLogics(CustomLogics) Allows you to override domain logic classes registered for Application Model interfaces.
CustomizeTypesInfo(ITypesInfo) Customizes business class metadata before loading it to the Application Model‘s BOModel node.
Dispose() Releases all resources used by the Component. Inherited from Component.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
ExtendModelInterfaces(ModelInterfaceExtenders) Extends the Application Model.
GetControllerTypes() Returns a collection of Controllers loaded to the Application Model.
GetExportedTypes() Returns a collection of business classes loaded to the Application Model.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetLifetimeService() Retrieves the current lifetime service object that controls the lifetime policy for this instance. Inherited from MarshalByRefObject.
GetModuleUpdaters(IObjectSpace, Version) Returns the list of ModuleUpdater updaters that handle database updates for the ModuleBase module.
GetRealModuleType(Type) static Returns the type of an XAF Module.
GetService(Type) protected Returns an object that represents a service provided by the Component or by its Container. Inherited from Component.
GetStartupActions() Returns a list of Pop-up Window Show Actions that must be executed before loading the application’s main Window.
GetType() Gets the Type of the current instance. Inherited from Object.
GetXafResourceLocalizerTypes() Returns a collection of Resource Localizer types that can be used in an application that uses the current module.
InitializeLifetimeService() Obtains a lifetime service object to control the lifetime policy for this instance. Inherited from MarshalByRefObject.
IsExportedType(Type) Detects whether the specified type is exported to the system class.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
MemberwiseClone(Boolean) protected Creates a shallow copy of the current MarshalByRefObject object. Inherited from MarshalByRefObject.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
Setup(ApplicationModulesManager) Sets up a module after it has been created.
Setup(XafApplication) Sets up a module after it has been added to the XafApplication.Modules collection.
ToString() Returns a String containing the name of the Component, if any. This method should not be overridden. Inherited from Component.

Events

Name Description
Disposed Occurs when the component is disposed by a call to the Dispose() method. Inherited from Component.
See Also