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()
init()
Sub New()
constructor (String)
constructor(aFilename: String)
LoadedUnmanagedModule(String aFilename)
init(_ aFilename: String)
Sub New(aFilename As String)
Parameters:
- aFilename:
CreateInstance (PluginDescriptor): IHYCrossPlatformPlugin (declared in LoadedModule)
Creates a new instance of a specified plugin.
method CreateInstance(aPluginDescriptor: PluginDescriptor): IHYCrossPlatformPlugin
IHYCrossPlatformPlugin CreateInstance(PluginDescriptor aPluginDescriptor)
func CreateInstance(_ aPluginDescriptor: PluginDescriptor) -> IHYCrossPlatformPlugin
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)
func CreateInstance(_ pluginDescriptor: PluginDescriptor) -> IHYCrossPlatformPlugin
Function CreateInstance(pluginDescriptor As PluginDescriptor) As IHYCrossPlatformPlugin
Parameters:
- pluginDescriptor:
Dispose
Releases resources allocated by the object.
method Dispose
void Dispose()
func Dispose()
Sub Dispose()
FileName
Returns the file name of a loaded plugin module.
property FileName: String read;
String FileName { get; }
var FileName: String { 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; }
var ModuleController: IHYCrossPlatformModuleController { get{} }
ReadOnly Property ModuleController() As IHYCrossPlatformModuleController
Name
Returns simple name of a loaded plugin module.
property Name: String read;
String Name { get; }
var Name: String { 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; }
var Plugins: PluginList { get{} }
ReadOnly Property Plugins() As PluginList
UnmanagedModule
Returns reference to an instance of the cross platform module.
property UnmanagedModule: IHYCrossPlatformModule read;
IHYCrossPlatformModule UnmanagedModule { get; }
var UnmanagedModule: IHYCrossPlatformModule { get{} }
ReadOnly Property UnmanagedModule() As IHYCrossPlatformModule
FileName
Returns the file name of a loaded plugin module.
property FileName: String read;
String FileName { get; }
var FileName: String { 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; }
var ModuleController: IHYCrossPlatformModuleController { get{} }
ReadOnly Property ModuleController() As IHYCrossPlatformModuleController
Name
Returns simple name of a loaded plugin module.
property Name: String read;
String Name { get; }
var Name: String { 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; }
var Plugins: PluginList { get{} }
ReadOnly Property Plugins() As PluginList
UnmanagedModule
Returns reference to an instance of the cross platform module.
property UnmanagedModule: IHYCrossPlatformModule read;
IHYCrossPlatformModule UnmanagedModule { get; }
var UnmanagedModule: IHYCrossPlatformModule { get{} }
ReadOnly Property UnmanagedModule() As IHYCrossPlatformModule
constructor protected (declared in LoadedModule)
Creates a new instance of the class.
constructor
LoadedUnmanagedModule()
init()
Sub New()
constructor (String)
constructor(aFilename: String)
LoadedUnmanagedModule(String aFilename)
init(_ aFilename: String)
Sub New(aFilename As String)
Parameters:
- aFilename:
CreateInstance (PluginDescriptor): IHYCrossPlatformPlugin (declared in LoadedModule)
Creates a new instance of a specified plugin.
method CreateInstance(aPluginDescriptor: PluginDescriptor): IHYCrossPlatformPlugin
IHYCrossPlatformPlugin CreateInstance(PluginDescriptor aPluginDescriptor)
func CreateInstance(_ aPluginDescriptor: PluginDescriptor) -> IHYCrossPlatformPlugin
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)
func CreateInstance(_ pluginDescriptor: PluginDescriptor) -> IHYCrossPlatformPlugin
Function CreateInstance(pluginDescriptor As PluginDescriptor) As IHYCrossPlatformPlugin
Parameters:
- pluginDescriptor:
Dispose
Releases resources allocated by the object.
method Dispose
void Dispose()
func Dispose()
Sub Dispose()