Analysis Services Programming
OwnerAddInName (OlapMenuItem)
The OwnerAddInName property of an OlapMenuItem object contains the name 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. You can use this property to identify the items your program owns and the programs that own other items.
Example
The following example prints OwnerAddInName 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 "OwnerAddInName is: " & MenuItem.OwnerAddInName
End If
End Function