The GetObject method of the IOlapAddIn interface responds to a request that your add-in program return a reference to the object that is represented by an OlapTreeNode.
Function GetObject(LinkedNode As OlapTreeNode) As Object
An OlapTreeNode can represent an object or a collection of objects.
'm_MyObjects is a collection of objects that are represented
'in the OLAP Manager tree view as OlapTreeNodes. Your add-in
'will need to populate this collection with objects.
Private m_MyObjects As New Collection
Private Function IOlapAddIn_GetObject( _
LinkedNode As DSSAddInsManager.OlapTreeNode) As Object
On Error Resume Next ' Handle error when it happens
Set IOlapAddIn_GetObject = m_MyObjects(LinkedNode.Caption)
If Err Then Err.Clear 'item was not found in the collection
End Function