共用方式為


CellCollection.Item Property (Int32[])

Gets the specified Cell from the collection by an array of absolute axis indexes.

命名空間: Microsoft.AnalysisServices.AdomdClient
組件: Microsoft.AnalysisServices.AdomdClient (in microsoft.analysisservices.adomdclient.dll)

語法

'宣告
Public ReadOnly Default Property Item ( _
    ParamArray indexes As Integer() _
) As Cell
public Cell this [
    params int[] indexes
] { get; }
public:
property Cell^ default [array<int>^] {
    Cell^ get (... array<int>^ indexes);
}
/** @property */
public Cell get_Item (int[] indexes)

參數

  • indexes
    An array of Integer values that contains a number of elements less than or equal to the count of axes in the CellSet the collection references.

備註

The array of Integer values represents a tuple created by referencing a single point from each axis represented in the CellSet the collection references. The index of each element in the array of Integer values matches the index of each axis in the Axes collection of the CellSet, and the value of each element represents a zero-based index of rows for each axis.

The following diagram illustrates the Axes collection of a CellSet. The Axes collection contains three axes, numbered from 0 to 2. A single tuple from each axis is then selected to identify a tuple representing a single Cell.

Tuple 4 is selected from Axes.Item(0), tuple 2 is selected from Axes.Item(1), and tuple 5 is selected from Axes.Item(2). Therefore, the array of Integer values should contain three elements, also numbered from 0 to 2 and assigned the values 4, 2, and 5, respectively.

If the array of Integer values contains more elements than the Axes collection, an exception is thrown.

執行緒安全性

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

CellCollection Class
CellCollection Members
Microsoft.AnalysisServices.AdomdClient Namespace