Displaying general information about Loaded Modules?

Topics: CAB & Smart Client Software Factory
Feb 1, 2007 at 9:03 AM
I'm looking to display general information about loaded modules, in say the Help-About dialog, including assembly name etc if possible.

Any idea how this can be achieved? I've taken a look through properties of loaded workitems and can't really find any presentable information so I'm either looking in the wrong place or it just isn't publicly accessible.

Any ideas?
Feb 1, 2007 at 10:42 AM
Hi,

maybe you are looking for the information provided by the ModuleLoaderService:

IModuleLoaderService loaderSrv = _rootWorkItem.Services.Get<IModuleLoaderService>();
foreach (LoadedModuleInfo info in loaderSrv.LoadedModules)
{
    System.Console.WriteLine(info.Name);
    System.Console.WriteLine(info.Assembly.FullName);
}

Regards
ibisxin
Feb 1, 2007 at 1:33 PM
thanks ibisxin.