![]() |
---|
下一版本的 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