LoadedUnmanagedModule
Overview
The LoadedUnmanagedModule is a class that represents loaded unmanaged plugin module. This class allows to load a module and provides access module data like plugins list or module controller.
Use Case
Usually you won't use this class directly, instead you will use base LoadedModule to get access to modules or ModuleManager to load module and create instances.
LoadedModule module = moduleManager.LoadModule("MyPlugin.dll");
foreach (PluginDescriptor plugin in module.Plugins)
{
Console.WriteLine(string.Format("Name: {0} Description: {1}", plugin.Name, plugin.Description));
}
Location
- Reference: RemObjects.Hydra.Host.dll
- Namespace: RemObjects.Hydra
- Ancestry: MarshalByRefObject | LoadedModule | LoadedUnmanagedModule
constructor protected (declared in LoadedModule)
Creates a new instance of the class.
constructor
LoadedUnmanagedModule()
Sub New()
constructor (String)
constructor(filename: String)
LoadedUnmanagedModule(String filename)
Sub New(filename As String)
Parameters:
- filename:
CreateInstance (PluginDescriptor): IHYCrossPlatformPlugin (declared in LoadedModule)
Creates a new instance of a specified plugin.
method CreateInstance(aPluginDescriptor: PluginDescriptor): IHYCrossPlatformPlugin
IHYCrossPlatformPlugin CreateInstance(PluginDescriptor aPluginDescriptor)
Function CreateInstance(aPluginDescriptor As PluginDescriptor) As IHYCrossPlatformPlugin
Parameters:
- aPluginDescriptor: Reference to a plugin descriptor.
CreateInstance (PluginDescriptor): IHYCrossPlatformPlugin
method CreateInstance(pluginDescriptor: PluginDescriptor): IHYCrossPlatformPlugin
IHYCrossPlatformPlugin CreateInstance(PluginDescriptor pluginDescriptor)
Function CreateInstance(pluginDescriptor As PluginDescriptor) As IHYCrossPlatformPlugin
Parameters:
- pluginDescriptor:
Dispose
Releases resources allocated by the object.
method Dispose
void Dispose()
Sub Dispose()
FileName
Returns the file name of a loaded plugin module.
property FileName: String read;
String FileName { get; }
ReadOnly Property FileName() As String
ModuleController
Returns reference to an instance of the cross platform module controller.
property ModuleController: IHYCrossPlatformModuleController read;
IHYCrossPlatformModuleController ModuleController { get; }
ReadOnly Property ModuleController() As IHYCrossPlatformModuleController
Name
Returns simple name of a loaded plugin module.
property Name: String read;
String Name { get; }
ReadOnly Property Name() As String
Plugins (declared in LoadedModule)
Returns a list of the plugins that is contained in a loaded module.
property Plugins: PluginList read;
PluginList Plugins { get; }
ReadOnly Property Plugins() As PluginList
UnmanagedModule
Returns reference to an instance of the cross platform module.
property UnmanagedModule: IHYCrossPlatformModule read;
IHYCrossPlatformModule UnmanagedModule { get; }
ReadOnly Property UnmanagedModule() As IHYCrossPlatformModule
FileName
Returns the file name of a loaded plugin module.
property FileName: String read;
String FileName { get; }
ReadOnly Property FileName() As String
ModuleController
Returns reference to an instance of the cross platform module controller.
property ModuleController: IHYCrossPlatformModuleController read;
IHYCrossPlatformModuleController ModuleController { get; }
ReadOnly Property ModuleController() As IHYCrossPlatformModuleController
Name
Returns simple name of a loaded plugin module.
property Name: String read;
String Name { get; }
ReadOnly Property Name() As String
Plugins (declared in LoadedModule)
Returns a list of the plugins that is contained in a loaded module.
property Plugins: PluginList read;
PluginList Plugins { get; }
ReadOnly Property Plugins() As PluginList
UnmanagedModule
Returns reference to an instance of the cross platform module.
property UnmanagedModule: IHYCrossPlatformModule read;
IHYCrossPlatformModule UnmanagedModule { get; }
ReadOnly Property UnmanagedModule() As IHYCrossPlatformModule
constructor protected (declared in LoadedModule)
Creates a new instance of the class.
constructor
LoadedUnmanagedModule()
Sub New()
constructor (String)
constructor(filename: String)
LoadedUnmanagedModule(String filename)
Sub New(filename As String)
Parameters:
- filename:
CreateInstance (PluginDescriptor): IHYCrossPlatformPlugin (declared in LoadedModule)
Creates a new instance of a specified plugin.
method CreateInstance(aPluginDescriptor: PluginDescriptor): IHYCrossPlatformPlugin
IHYCrossPlatformPlugin CreateInstance(PluginDescriptor aPluginDescriptor)
Function CreateInstance(aPluginDescriptor As PluginDescriptor) As IHYCrossPlatformPlugin
Parameters:
- aPluginDescriptor: Reference to a plugin descriptor.
CreateInstance (PluginDescriptor): IHYCrossPlatformPlugin
method CreateInstance(pluginDescriptor: PluginDescriptor): IHYCrossPlatformPlugin
IHYCrossPlatformPlugin CreateInstance(PluginDescriptor pluginDescriptor)
Function CreateInstance(pluginDescriptor As PluginDescriptor) As IHYCrossPlatformPlugin
Parameters:
- pluginDescriptor:
Dispose
Releases resources allocated by the object.
method Dispose
void Dispose()
Sub Dispose()