OwnerAddInProgID (OlapMenuItem)

Analysis Services Programming

Analysis Services Programming

OwnerAddInProgID (OlapMenuItem)

The OwnerAddInProgID property of an OlapMenuItem object contains the program ID of the add-in that owns the menu item.

Data Type

String

Access

Read/write

Remarks

This property is set automatically by the Microsoft OLAP Services Add-ins Manager library. The program ID is set in the registry when the add-in is registered, and it consists of the program name of the add-in and the name of the class used to instantiate the add-in. For example, the Report Add-In example uses the following program ID:

ReportAddIn.ReportClass
Example

The following example prints the OwnerAddInProgID property in a message box:

Private Function IOlapAddIn_ExecuteMenuItem( _
    CurrentNode As DSSAddInsManager.OlapTreeNode, _
    MenuItem As DSSAddInsManager.OlapMenuItem) _
    As DSSAddInsManager.RefreshTreeTypes
  On Error Resume Next 'Handle errors
  If MenuItem.Caption = "&Special" Then
    MsgBox "OwnerAddInProgID is: " & MenuItem.OwnerAddInProgID
  End If
End Function

See Also

OlapMenuItem