Click or drag to resize
ModuleEntryManagerEnsureModuleT Method

Note: This API is now obsolete.

Ensures that a module of the specified type is registered.

Namespace: CMS.Core
Assembly: CMS.Core (in CMS.Core.dll) Version: 10.0.0
Syntax
C#
[ObsoleteAttribute("Method should not be called from custom code and will be removed.")]
public static void EnsureModule<T>()
where T : new(), ModuleEntry

Type Parameters

T
The type of the module to register.
Remarks
If a module info object with the same name is already available, the manager does nothing. If the application life-cycle has already started and the module has AutoInitialize set to true, the module initialization starts immediately to catch up (if called from multiple threads, the method does not return until the module has caught up the application life-cycle).
See Also