Udostępnij przez


ClassType (interfejs wymiaru)

Ostrzeżenie

  Ta funkcja zostanie usunięta z następnej wersji programu Microsoft SQL Server. Nie należy stosować tej funkcji w nowych projektach oraz jak najszybciej należy zmodyfikować aplikacje, w których obecnie jest używana ta funkcja.

ClassType Właściwość Dimension interfejs zawiera stała wyliczeniowej identyfikujący typ określonej klasy.

Stosuje się do:clsAggregationDimension, clsCubeDimension, clsDatabaseDimension, clsPartitionDimension

Typ danych

ClassTypes

Dla obiektów wymiar ClassType zwraca jeden z następujących:

  • clsDatabaseDimension

  • clsCubeDimension

  • clsPartitionDimension

  • clsAggregationDimension

Dostęp

Tylko do odczytu

Przykład

Uzyskanie typem klasy obiektu wymiar, należy użyć następującego kodu:

    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

Zobacz także

Odwołanie