OnAddInsUpdate event

Occurs when the set of loaded COM add-ins for MapPoint changes. When an add-in is connected (loaded) or disconnected (unloaded), the OnAddInsUpdate event occurs in any other loaded add-in.

Syntax

object.OnAddInsUpdate

Part Description
object An expression that evaluates to a COM add-in.

Remarks

If an add-in depends on another add-in, you can use the OnAddInsUpdate event procedure in the dependent add-in to determine whether the other add-in has been connected or disconnected.

The OnAddInsUpdate event procedure provides only a single argument, the Custom() argument, which is an empty array of Variant type values. This argument is ignored in COM add-ins for MapPoint.

With the OnAddInsUpdate event, you can check the Addins collection to see which add-ins are loaded. Use the GetProgIDFromObject method on the MapPointUtilities object to find the programmatic identifiers of the loaded add-ins.