LinkedObject (OlapTreeNode)

Analysis Services Programming

Analysis Services Programming

LinkedObject (OlapTreeNode)

The LinkedObject property of an OlapTreeNode object contains a reference to the object linked to the node. The linked object is supplied by the add-in through the GetObject method of the IOlapAddIn interface, and it is used to store object references associated with a tree node in Analysis Manager.

Data Type

Object

Access

Read-only

Remarks

This property is useful when combined with another object-based library, such as Decision Support Objects (DSO). Combining the two allows this property to store object references that are relevant to the add-in for a given tree node in Analysis Manager.

In addition, tree nodes owned by Analysis Manager have DSO references to the appropriate object represented by the tree node. For example, a tree node in Analysis Manager for an Analysis server has a DSO Server object associated with it.

The GetObject method of the IOlapAddIn interface is used to provide object references for other tree nodes in Analysis Manager.

Example

The following example checks the LinkedObject property of the OlapTreeNode supplied by LinkedNode in the GetObject method of the IOlapAddIn interface:

Private Function IOlapAddIn_GetObject(LinkedNode As _
    DSSAddInsManager.OlapTreeNode) As Object
    
    On Error Resume Next
    
    If Not (LinkedNode.LinkedObject Is Nothing) Then
        ' It already has a linked object
        Beep
    End If
    
End Function

See Also

OlapTreeNode

GetObject (IOlapAddIn Interface)