The Parent property of the Role interface contains a reference to the parent MDStore object.
| clsCubeRole | clsDatabaseRole | 
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 | 
Read-only
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
| About Decision Support Objects | Using Decision Support Objects | 
| Properties Cross-Reference |