次の方法で共有


ContainedClassType (clsCollection)

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

The ContainedClassType property of a Decision Support Objects (DSO) collection returns the class type of the items contained within the collection. This property does not apply to CustomProperties collections.

Data Type

ClassTypes

Access

Read-only

解説

The DSO object model uses the properties ClassType and SubClassType to identify the object. All DSO objects, with the exception of those of ClassType clsCube, clsLevel, and clsMiningModel, return a SubClassType of sbclsRegular. In addition to sbclsRegular, an object of ClassType clsCube or clsLevel can have a SubClassType of sbclsVirtual,which identifies the object as a virtual cube or a virtual (calculated) level. Objects of ClassType clsMiningModel return a SubClassType of sbclsOLAP or sbclsRelational, depending on the type of mining model defined by the object.

使用例

Use the following code to return a collection object's ContainedClassType and determine which class type has been returned:

Dim ctVar As ClassTypes 
ctVar = CollectionObject.ContainedClassType 
Select Case ctVar 
   Case clsCubeMeasure 
      ' Insert code for a cube measure.
   Case clsCubeDimension 
      ' Insert code for a cube dimension.
   Case clsCubeLevel 
      ' Insert code for a cube level.
   Case clsCubeCommand 
      ' Insert code for a cube command.
   Case clsCubeRole 
      ' Insert code for a cube role.
   Case Else 
        ' Insert code for other objects.
End Select 
 

参照

関連項目

ClassTypes
clsDataSource
Command Interface
Dimension Interface
Level Interface
MDStore Interface
Role Interface

その他の技術情報

Collections

ヘルプおよび情報

SQL Server 2005 の参考資料の入手