GetProgIDFromObject method
Returns the programmatic identifier of the specified object. Read-only String.
Applies to
Objects: MapPointUtilities
Syntax
object.GetProgIDFromObject(Source)
Parameters
Part | Description |
---|---|
object | Required. An expression that returns a MapPointUtilities object. |
Source | Required Object. Any object that has a programmatic identifier; usually used with COM add-ins. |
Remarks
If the programmatic identifier is not available, returns the class identifier. If the class identifier is not available, returns an empty string.
Example
'This program assumes you have at least one add-in loaded in MapPoint
Sub GetProgID()
Dim objApp As New MapPoint.Application
Dim MapUtils As New MapPoint.MapPointUtilities
Dim obj As Object
Dim zList As String
'List each MapPoint Add-in in a message box
For Each obj In objApp.AddIns
zList = zList & vbCrLf & MapUtils.GetProgIDFromObject(obj)
Next obj
MsgBox "Objects: " & zList
End Sub