Partager via


Item propriété

Gets the IModelComponent at the specified index.

Espace de noms :  Microsoft.AnalysisServices
Assembly :  Microsoft.AnalysisServices (dans Microsoft.AnalysisServices.dll)

Syntaxe

'Déclaration
Protected ReadOnly Default Property Item ( _
    index As Integer _
) As IModelComponent
    Get
'Utilisation
Dim index As Integer
Dim value As IModelComponent

value = Me(index)
protected IModelComponent this[
    int index
] { get; }
protected:
property IModelComponent^ default[int index] {
    IModelComponent^ get (int index);
}
member Item : IModelComponent
JScript prend en charge l'utilisation de propriétés indexées, mais pas la déclaration de nouvelles propriétés.

Paramètres

  • index
    Type : System. . :: . .Int32
    The zero-based index of the [Microsoft.DataWarehouse.IModelComponent] to get.

Valeur de la propriété

Type : Microsoft.AnalysisServices. . :: . .IModelComponent
The [Microsoft.DataWarehouse.IModelComponent] at the specified index.

Exceptions

Exception Condition
ArgumentOutOfRangeException

index is less than zero.

-or-

index is equal to or greater than Count.

Notes

This property provides the ability to access a specific element in the collection by using the following syntax: myCollection[index].