OrdinalPosition (Measure Interface)

[!附註]

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

The OrdinalPosition property of the Measure interface contains the ordinal position of the measure in the Measures collection of the parent object.

Applies To:clsAggregationMeasure, clsCubeMeasure, clsPartitionMeasure

Data Type

Integer

Access

Read-only

備註

If no default measure is specified, the first measure is the default measure for the cube. If a Multidimensional Expressions (MDX) expression or query does not contain an explicit reference to a measure, the Analysis server performs the command using the default measure.

範例

Use the following code to return the ordinal position of a measure object:

Dim OrdPos As Integer
OrdPos = MeasureObject.OrdinalPosition

請參閱

參考