The ContainedClassType property of a Decision Support Objects (DSO) collection returns the class type of the items contained within the collection. This property does not apply to CustomProperties collections.
ClassTypes (an enumeration)
ClassTypes enumeration.
Any valid value in the ClassTypes enumeration.
n/a
Read-only
The Decision Support Objects (DSO) object model uses the properties ClassType and SubClassType to identify the object. All DSO objects, with the exception of those of ClassType clsCube and clsLevel return a SubClassType of sbclsRegular. In addition to sbclsRegular, an object of ClassType clsCube or clsLevel can have a SubClassType of sbclsVirtual, which identifies the object as a virtual cube or a virtual (calculated) level.
Use the following code to return a collection object’s ContainedClassType and determine which class type has been returned:
Dim ctVar As ClassTypes
ctVar = CollectionObject.ContainedClassType
Select Case ctVar
Case clsCubeMeasure
' commands for a CubeMeasure
Case clsCubeDimension
' commands for a CubeDimension
Case clsCubeLevel
' commands for a CubeLevel
Case clsCubeCommand
' commands for a CubeCommand
Case clsCubeRole
' commands for a CubeRole
*
*
*
Case Else
' other commands
End Select
clsDatasource | Level Interface |
Command Interface | MDStore Interface |
Dimension Interface | Role Interface |