SubClassType (Level Interface)

[!附註]

  下一版的 Microsoft SQL Server 將不再提供此功能。請勿在新的開發工作中使用此功能,並且儘速修改使用此功能的應用程式。

The SubClassType property of the Level interface contains an enumeration constant that identifies the subclass type of the object.

Applies To:clsAggregationLevel, clsDatabaseLevel, clsCubeLevel, clsPartitionLevel

Data Type

SubClassTypes

Access

Read-only

備註

Objects that implement the Level interface can have a SubClassType property of sbclsRegular, sbclsLinked, sbclsVirtual, sbclsMining, or sbclsParentChild.

範例

Use the following code to check the SubClassType property of a level object.

' Assume an object (dsoLevel) of ClassType clsCubeLevel exists
If dsoLevel.SubClassType = sbclsParentChild Then
  'Code to handle a parent-child level
Else
  'Code to handle other types of levels
End If

請參閱

參考