Class PluginInformation
Information about plugin. Implements the System.IDisposable
Inheritance
Implements
Inherited Members
Namespace: AIMP.SDK
Assembly: AIMP.SDK.dll
Syntax
[Serializable]
public class PluginInformation : IDisposable
Constructors
PluginInformation(FileInfo, String, String, AimpPluginAttribute)
Initializes a new instance of the PluginInformation class.
Declaration
public PluginInformation(FileInfo assemblyPath, string assemblyName, string className, AimpPluginAttribute pluginAttribute)
Parameters
Type | Name | Description |
---|---|---|
System.IO.FileInfo | assemblyPath | The assembly path. |
System.String | assemblyName | Name of the assembly. |
System.String | className | Name of the class. |
AimpPluginAttribute | pluginAttribute | The plugin attribute. |
PluginInformation(String, String, String, AimpPluginAttribute)
Initializes a new instance of the PluginInformation class.
Declaration
public PluginInformation(string assemblyPath, string assemblyName, string className, AimpPluginAttribute pluginAttribute)
Parameters
Type | Name | Description |
---|---|---|
System.String | assemblyPath | The assembly path. |
System.String | assemblyName | Name of the assembly. |
System.String | className | Name of the class. |
AimpPluginAttribute | pluginAttribute | The plugin attribute. |
Properties
AssemblyFileName
Gets the name of the assembly file.
Declaration
public string AssemblyFileName { get; }
IsLoaded
Gets a value indicating whether this plugin is loaded.
Declaration
public bool IsLoaded { get; }
LoadedPlugin
Gets the loaded plugin.
Declaration
public AimpPlugin LoadedPlugin { get; }
PluginAppDomainInfo
Gets the plugin application domain information (null = current doamin).
Declaration
public AppDomain PluginAppDomainInfo { get; }
PluginAssemblyName
Gets the name of the plugin assembly.
Declaration
public string PluginAssemblyName { get; }
PluginClassName
Gets the name of the plugin class.
Declaration
public string PluginClassName { get; }
PluginInfo
Gets the plugin information.
Declaration
public AimpPluginAttribute PluginInfo { get; }
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Implements
Initialize(IAimpPlayer)
Initializes the specified plugin.
Declaration
public void Initialize(IAimpPlayer player)
Parameters
Type | Name | Description |
---|---|---|
IAimpPlayer | player | The player. |
Load()
Loads this plugin.
Declaration
public bool Load()
ShowSettingDialog(IntPtr)
Shows the setting dialog.
Declaration
public void ShowSettingDialog(IntPtr parentWindow)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | parentWindow | The parent window. |
Unload()
Unloads this plugin.
Declaration
public bool Unload()
Events
PluginLoadEvent
Occurs when [plugin load event].
Declaration
public event PluginLoadUnloadEvent PluginLoadEvent
Event Type
Type | Description |
---|---|
PluginLoadUnloadEvent |
PluginUnloadEvent
Occurs when [plugin unload event].
Declaration
public event PluginLoadUnloadEvent PluginUnloadEvent
Event Type
Type | Description |
---|---|
PluginLoadUnloadEvent |