次の方法で共有


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

ClassTypes

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

関連項目

参照