How to access "ModuleControllerAttribute" from Delphi

Is it possible to access the ModuleControllerAttribute data of a .NET module controller from the Delphi side ?

I’m looking for something like HYModuleManager.Modules[Index].UserData i.e. the equivalent of an individual plugins data e.g. HYModuleManager.PluginDescriptors[Index].UserData. The plugin data I can get and use, the module data I can’t.

Thanks.

Hello,

You can acces to it using code like this:

begin
  for i := 0 to ModuleManager.ModulesCount - 1 do
  begin
    ModuleManager.Modules[i].ModuleController.Descriptor.UserData
  end;
end;

To access to THyModule you can use also the following methods:
ModuleManager.ModuleByFileName
ModuleManager.ModuleByName

Thank you. Got that now.

The Class list wiki page for Hydra http://wiki.remobjects.com/wiki/Class_List_(Hydra_for_Delphi) would benefit from the inclusion of THYModuleDescriptor . I got as far as seeing a reference to Descriptor in the THYModuleController, but couldn’t follow through to looking at THYModuleDescriptor.

Hello,
Thanks, we will investigate it.