Categories Property

Description

The Categories property returns a Categories collection associated with an object.

A COM exception is thrown in error situations. The message that is passed with the exception varies depending on the error situation.

Syntax

object .Categories

Applies To

CategorySet Object

DateDimension Object

Dimension Object

DateDrillDown Object

DrillDown Object

Discussion

For a CategorySet object, use this property to return the categories used in a calculation.

For a Dimension object, use this property to return the collection of special categories. It also returns calculated categories connected to special categories.

For a DrillDown object, use this property to return all the categories in a level. Use the ChildCategories property to return a collection of child categories.

Type

Object

Access

Read

Examples

objCategory = objModel.Dimensions("Retailers").DrillDowns(1).Categories(2)