GetObject

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.

Syntax

Function GetObject(LinkedNode As OlapTreeNode) As Object

Calling Arguments
LinkedNode
The OlapTreeNode to be linked with an actual object.
Remarks

An OlapTreeNode can represent an object or a collection of objects.

Example

'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

(c) 1988-1998 Microsoft Corporation. All Rights Reserved.