Partilhar via


Método IndexOf

Gets the index of a specified Command.

Namespace:  Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (em Microsoft.AnalysisServices.dll)

Sintaxe

'Declaração
Public Function IndexOf ( _
    item As Command _
) As Integer
'Uso
Dim instance As CommandCollection
Dim item As Command
Dim returnValue As Integer

returnValue = instance.IndexOf(item)
public int IndexOf(
    Command item
)
public:
int IndexOf(
    Command^ item
)
member IndexOf : 
        item:Command -> int 
public function IndexOf(
    item : Command
) : int

Parâmetros

Valor de retorno

Tipo: System. . :: . .Int32
The zero-based index of the Command if the object is found; otherwise, -1.