Condividi tramite


Metodo ModelComponentCollection.IndexOf (String)

Returns the zero-based index of the first occurrence of an IModelComponent that has the specified key in the ModelComponentCollection.

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

Sintassi

'Dichiarazione
Protected Function IndexOf ( _
    key As String _
) As Integer
'Utilizzo
Dim key As String 
Dim returnValue As Integer 

returnValue = Me.IndexOf(key)
protected int IndexOf(
    string key
)
protected:
int IndexOf(
    String^ key
)
member IndexOf : 
        key:string -> int
protected function IndexOf(
    key : String
) : int

Parametri

  • key
    Tipo: System.String
    The key of the IModelComponent to locate.

Valore restituito

Tipo: System.Int32
The zero-based index of the first occurrence of key within the ModelComponentCollection, if found; otherwise, -1.

Vedere anche

Riferimento

ModelComponentCollection Classe

Overload IndexOf

Spazio dei nomi Microsoft.AnalysisServices