共用方式為


CellSet.Item 屬性 (Int32, Int32)

Gets the specified Cell from the collection.

命名空間:  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 CellSet 
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 支援索引屬性的使用,但不支援新屬性的宣告。

參數

  • index1
    型別:System.Int32
    The zero-based index on the first axis of the Cell to find.
  • index2
    型別:System.Int32
    The zero-based index on the second axis of the Cell to find.

屬性值

型別:Microsoft.AnalysisServices.AdomdClient.Cell
The Cell at the specified indexes.

例外狀況

例外狀況 條件
System.ArgumentException

The CellSet does not have exactly two axes.

System.ArgumentOutOfRangeException

Either index1 or index2 were less than 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.

請參閱

參考

CellSet 類別

Item 多載

Microsoft.AnalysisServices.AdomdClient 命名空間