Поделиться через


Свойство Item (Int32, Int32)

Gets the specified Cell from the collection by its coordinate.

Пространство имен:  Microsoft.AnalysisServices.AdomdClient
Сборка:  Microsoft.AnalysisServices.AdomdClient (в Microsoft.AnalysisServices.AdomdClient.dll)

Синтаксис

'Декларация
Public ReadOnly Default Property Item ( _
    index1 As Integer, _
    index2 As Integer _
) As Cell
    Get
'Применение
Dim instance As CellCollection
Dim index1 As Integer
Dim index2 As Integer
Dim value As Cell

value = instance(index1, index2)
public Cell this[
    int index1,
    int index2
] { get; }
public:
property Cell^ default[int index1, int index2] {
    Cell^ get (int index1, int index2);
}
member Item : Cell
JScript поддерживает использование индексированных свойств, но не объявление новых.

Параметры

Значение свойства

Тип: Microsoft.AnalysisServices.AdomdClient. . :: . .Cell

Исключения

Исключение Условие
System..::..ArgumentException

The CellSet does not have exactly two axes.

System..::..ArgumentOutOfRangeException

Either index1 or index2 were less 0, or greater than the number of tuples in their respective axes.

Замечания

This property is optimized for two-dimensional cellsets. Any attempt to use this with a cellset that contains more or less than two dimensions raises an exception.

ПримечаниеПримечание

This property is optimized and can only be used with cellsets that contain exactly two axes.