OnBeginShutdown event

The OnBeginShutdown event procedure runs code when the user closes MapPoint. For example, you can use it to run code that saves form data to a file when you close MapPoint.

In the case where MapPoint closes while the COM add-in is still loaded, the OnBeginShutdown event occurs when MapPoint begins its shutdown routines, before the OnDisconnection event. If the add-in is unloaded before MapPoint closes, only the OnDisconnection event is sent.

Syntax

object.OnBeginShutdown(Custom)

Part Description
object An expression that evaluates to a COM add-in.
Custom Variant. An empty array; ignored in COM add-ins for MapPoint.