Freigeben über


ClassType (Dimension Interface)

ms134860.note(de-de,SQL.90).gifHinweis:
  Dieses Feature wird in der nächsten Version von Microsoft SQL Server entfernt. Verwenden Sie dieses Feature nicht zum Entwickeln neuer Anwendungen, und planen Sie das Ändern von Anwendungen, in denen es zurzeit verwendet wird, zum frühstmöglichen Zeitpunkt ein.

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

ClassTypes

For dimension objects, ClassType returns one of the following:

  • clsDatabaseDimension
  • clsCubeDimension
  • clsPartitionDimension
  • clsAggregationDimension

Access

Read-only

Beispiel

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

Siehe auch

Verweis

Dimension Interface

Hilfe und Informationen

Informationsquellen für SQL Server 2005