The ClassType property of the Command interface contains an enumeration constant identifying the class designation within the Decision Support Objects (DSO) object model.
| clsCubeCommand | clsDatabaseCommand | 
ClassTypes (an enumeration)
Read-only
For a complete list of class types, see Enumerations.
Use the following code to return the class type of a command object and determine which object class has been returned:
' Assume the existence of object CommandObject
Dim ClassType As ClassTypes
ClassType = CommandObject.ClassType
Select Case ClassType
   Case clsDatabaseCommand
        ' commands for a database command
   Case clsCubeCommand
        ' commands for a CubeCommand
   Case Else
        ' not a Command object
End Select
| About Decision Support Objects | Using Decision Support Objects | 
| SubClassType | Properties Cross-Reference |