ClassType (Level Interface)
Hinweis |
---|
Diese Funktion wird in der nächsten Version von Microsoft SQL Server entfernt. Verwenden Sie diese Funktion beim Entwickeln neuer Anwendungen nicht, und planen Sie so bald wie möglich das Ändern von Anwendungen, in denen es zurzeit verwendet wird. |
The ClassType property of the Level interface contains an enumeration constant that identifies the specific class type.
Applies To:clsAggregationLevel, clsCubeLevel, clsDatabaseLevel, clsPartitionLevel
Data Type
For level objects, ClassType is set to one of the following values:
clsDatabaseLevel
clsCubeLevel
clsPartitionLevel
clsAggregationLevel
Access
Read-only
Beispiel
Use the following code to return the class type of a level object and to determine which object class has been returned:
'Assume an object (dsoLevel) of ClassType clsLevel exists
Dim objClass As DSO.ClassTypes
objClassType = dsoLevel.ClassType
Select Case objClassType
Case clsAggregationLevel
' Insert commands for an aggregation level.
Case clsCubeLevel
' Insert commands for a cube level.
Case clsDatabaseLevel
' Insert commands for a database level.
Case clsPartitionLevel
' Insert commands for a partition level.
End Select