ClassType (Measure Interface)
[!참고] 이 기능은 다음 버전의 Microsoft SQL Server에서 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 말고, 현재 이 기능을 사용하는 응용 프로그램은 가능한 한 빨리 수정하십시오.
The ClassType property of the Measure interface returns an enumeration constant that identifies the specific object type.
Applies To:clsAggregationMeasure, clsCubeMeasure, clsPartitionMeasure
Data Type
For measure objects, ClassType is set to one of the following values:
- clsCubeMeasure
- clsPartitionMeasure
- clsAggregationMeasure
Access
Read-only
Examples
Determining the ClassType Property of a Measure Object
Use the following code to return the class type of a measure object and determine which object class has been returned:
'Assume an object (dsoCubeMea) of ClassType clsCubeMeasure exists
Select Case dsoCubeMea.ClassType
Case clsCubeMeasure
' Insert code for a cube measure.
Case clsPartitionMeasure
' Insert code for a partition measure.
Case clsAggregationMeasure
' Insert code for an aggregation measure.
Case Else
' other commands
End Select