RemoveCommands method
Removes all of the commands from the Tools menu that call a COM add-in.
Applies to
Objects: Application
Syntax
object.RemoveCommands(Target)
Parameters
Part |
Description |
---|---|
Object |
Required. An expression that returns an add-in object. |
Target |
Required Object. An add-in object that implements the method. |
Remarks
In the MapPoint Control, this method does nothing because there are no menus to modify.
To learn more about creating COM add-ins, see the About creating a COM add-in reference topic.
Example
Private Sub AddinInstance_OnDisconnection(ByVal RemoveMode As
AddInDesignerObjects.ext_DisconnectMode, custom() As Variant)
On Error Resume Next
moaApp.RemoveCommands Me
End Sub