Method LoadPlugin
LoadPlugin(string)
Loads an isolated anvil plugin from the specified plugin folder at runtime.
public Plugin LoadPlugin(string pluginRoot)
Parameters
pluginRootstringThe root folder containing the plugin assembly, and other resources.
Returns
- Plugin
The loaded plugin.
Exceptions
- ArgumentException
Thrown if the plugin folder/assembly is missing, or otherwise cannot be loaded.
- InvalidOperationException
Thrown if the plugin is already loaded, or if the specified plugin is not configured as an isolated plugin.