PluginState Enumeration

State of the plug-in.

Any PluginState value can be saved to the plug-in configuration file. Plug-ins having Removed value in configuration file are ignored when the program is being loaded.

The following state transitions are supported for in-memory plug-in objects:

Installed -> Disabled The plug-in is disabled. Any existing related instances of IPlugin are removed from all session profiles and disposed.
Disabled -> Installed The plug-in is enabled. Related instances of IPluginSingleton and IPlugin are created unless they already exist.
Installed -> Removed The plug-in is removed. Any existing related instances of IPluginSingleton and IPlugin are removed and disposed.
Disabled -> Removed The plug-in is removed. Any existing related instances of IPluginSingleton are removed and disposed.

Definition

Namespace: SMath.Extensibility
Assembly: SMath.Manager (in SMath.Manager.dll) Version: 1.74.9654.0
C#
public enum PluginState

Members

Installed0 Plug-in is installed.
Removed1

Plug-in is removed.

This state value is written to the configuration file to indicate that plug-in objects must not be read into memory. It also marks the in-memory objects of a plug-in which has just been removed (that is needed because the plug-in can never be erased from memory completely due to static data etc).

Disabled2 Plug-in is disabled.

See Also