Condividi tramite


Proprietà DataItemCollection.Item

Gets the DataItem at the specified index from the collection.

Spazio dei nomi  Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)

Sintassi

'Dichiarazione
Public Default Property Item ( _
    index As Integer _
) As DataItem 
    Get 
    Set
'Utilizzo
Dim instance As DataItemCollection 
Dim index As Integer 
Dim value As DataItem 

value = instance(index)

instance(index) = value
public DataItem this[
    int index
] { get; set; }
public:
property DataItem^ default[int index] {
    DataItem^ get (int index);
    void set (int index, DataItem^ value);
}
member Item : DataItem with get, set
JScript supporta l'utilizzo di proprietà indicizzate, ma non la dichiarazione di nuove proprietà.

Parametri

Valore proprietà

Tipo: Microsoft.AnalysisServices.DataItem
The DataItem at the specified index.

Eccezioni

Eccezione Condizione
ArgumentOutOfRangeException

index is less than zero.

-or-

index is equal to or greater than Count.

Vedere anche

Riferimento

DataItemCollection Classe

Spazio dei nomi Microsoft.AnalysisServices