ClassType (Dimension Interface)
[!참고] 이 기능은 다음 버전의 Microsoft SQL Server에서 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 말고, 현재 이 기능을 사용하는 응용 프로그램은 가능한 한 빨리 수정하십시오.
The ClassType property of the Dimension interface contains an enumeration constant that identifies the specific class type.
Applies To:clsAggregationDimension, clsCubeDimension, clsDatabaseDimension, clsPartitionDimension
Data Type
For dimension objects, ClassType returns one of the following:
- clsDatabaseDimension
- clsCubeDimension
- clsPartitionDimension
- clsAggregationDimension
Access
Read-only
예
Use the following code to obtain the class type of a dimension object:
Dim dsoDim As DSO.Dimension
Dim objClassType As DSO.ClassTypes
' Insert code here for setting the dsoDim
' dimension object to a valid dimension.
' Get the ClassType property of the dimension.
objClassType = dsoDimDimensionObject.ClassType
' Check the class type.
Select Case objClassType
Case clsDatabaseDimension
' Insert commands for a database dimension.
Case clsCubeDimension
' Insert commands for a cube dimension or virtual cube dimension.
Case clsPartitionDimension
' Insert commands for a partition dimension.
Case clsAggregationDimension
' Insert commands for an aggregation dimension.
Case Else
' Insert other commands.
End Select