Freigeben über


ClassType (Measure Interface)

HinweisHinweis

  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 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

Siehe auch

Verweis