次の方法で共有


ClassType (Level Interface)

ms133886.note(ja-jp,SQL.90).gifメモ :
  この機能は、Microsoft SQL Server の次のバージョンで削除されます。新規の開発作業ではこの機能を使用しないようにし、現在この機能を使用しているアプリケーションはできるだけ早く修正してください。

The ClassType property of the Level interface contains an enumeration constant that identifies the specific class type.

Applies To:clsAggregationLevel, clsCubeLevel, clsDatabaseLevel, clsPartitionLevel

Data Type

ClassTypes

For level objects, ClassType is set to one of the following values:

  • clsDatabaseLevel
  • clsCubeLevel
  • clsPartitionLevel
  • clsAggregationLevel

Access

Read-only

使用例

Use the following code to return the class type of a level object and to determine which object class has been returned:

'Assume an object (dsoLevel) of ClassType clsLevel exists
Dim objClass As DSO.ClassTypes
objClassType = dsoLevel.ClassType
Select Case objClassType
  Case clsAggregationLevel
    ' Insert commands for an aggregation level.
  Case clsCubeLevel
    ' Insert commands for a cube level.
  Case clsDatabaseLevel
    ' Insert commands for a database level.
  Case clsPartitionLevel
    ' Insert commands for a partition level.
End Select

参照

関連項目

ClassTypes
Level Interface

ヘルプおよび情報

SQL Server 2005 の参考資料の入手