Plugin.priorityClass Property

[Read/Write] This property sets/returns the priority class number (long) of the plug-in. The priority class may be either 100 or 200. In general, plug-ins that change file paths of selected templates should be members of the 100 priority class so they are called first; plug-ins that do not need to change file paths should be members of the 200 priority class.

Syntax

int priorityClass [ set, get ]

Example (Visual C#)

The following Visual C# example displays various properties of each registered plugin:

public class ExampleCode
{
    static void Main()
    {
        HotDocs.Application app = new HotDocs.Application();
        HotDocs.PluginsClass plugins = app.Plugins;
        string msg;
         
        for (int i = 0; i < plugins.Count; i++)
        {
            msg = "CLSID: " + plugins.Item(i).CLSID + "\n\r";
            msg += "Description: " + plugins.Item(i).Description + "\n\r";
            msg += "priorityClass: " + plugins.Item(i).priorityClass + "\n\r";
            msg += "priorityIndex: " + plugins.Item(i).priorityIndex;
            MessageBox.Show(msg);
        }
    }
}