ClassType (Level Interface)
[!참고]
이 기능은 다음 버전의 Microsoft SQL Server에서 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 말고, 현재 이 기능을 사용하는 응용 프로그램은 가능한 한 빨리 수정하십시오.
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
예
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