Parent

The Parent property of the Role interface contains a reference to the parent MDStore object.

Applies To
clsCubeRole clsDatabaseRole

Data Type

MDStore

The class type of the parent object depends on the class type of the role object.

Role object class type Parent object class type
clsDatabaseRole clsDatabase
clsCubeRole clsCube

Access

Read-only

Example

Use the following code to return a role object parent to object ParentObject and determine which object class has been returned:

Dim ParentObject As MDStore

Set ParentObject = RoleObject.Parent

Dim ParentClass As ClassTypes

ParentClass = ParentObject.ClassType

Select Case ParentClass

    Case clsDatabase

        ' commands for a Database

    Case clsCube

        ' commands for a Cube

End Select

See Also
About Decision Support Objects Using Decision Support Objects
Properties Cross-Reference  

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