Table of Contents

Method UnloadPlugin

Namespace
Anvil.Plugins
Assembly
NWN.Anvil.dll

UnloadPlugin(Plugin, bool)

Unloads an isolated anvil plugin at runtime.

public WeakReference UnloadPlugin(Plugin plugin, bool waitForUnload = true)

Parameters

plugin Plugin

The plugin to unload - see GetPlugin(string).

waitForUnload bool

If true, the server will block the current main thread until the plugin has been unloaded.

Returns

WeakReference

A weak reference to the unloading plugin assembly. Query the IsAlive property to confirm the plugin has unloaded.

Exceptions

InvalidOperationException