PluginsClass.Register Method

This method registers the plug-in.

Syntax

void Register ( string CLSID, string descriptionStr, int priorityClass, int priorityIndex )

Parameters Description
CLSID The class ID for the plug-in (e.g., "{12345678-1111-2222-AAAA-DDDDDDDDDDDD}").
descriptionStr A description for the plug-in.
priorityClass Either 100 or 200. Use 100 if it is going to change the file path; otherwise, use 200. This priority is followed when HotDocs is editing or assembling a template; if more than one plug-in is registered, this determines the order.
priorityIndex Any number 1-99 to indicate the priority.

Example

The following Visual C# example registers a plug-in:

[ComRegisterFunction]
public static void RegisterPlugin(Type t)
{
    HotDocs.Application app = new HotDocs.Application();
    app.Plugins.Register("{12345678-1111-2222-AAAA-DDDDDDDDDDDD}", "File Handler", 100, 1);
    System.Runtime.InteropServices.Marshal.ReleaseComObject(app);
}