ContainedClassType

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.

Data Type

ClassTypes (an enumeration)

Values

ClassTypes enumeration.

Range

Any valid value in the ClassTypes enumeration.

Default

n/a

Access

Read-only

Remarks

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.

Example

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

 

See Also
clsDatasource Level Interface
Command Interface MDStore Interface
Dimension Interface Role Interface

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