Share via


CommandCollection.IndexOf(Command) Method

Definition

Searches for the specified Command and returns its zero-based index within the collection.

public int IndexOf (Microsoft.AnalysisServices.Command item);
member this.IndexOf : Microsoft.AnalysisServices.Command -> int
Public Function IndexOf (item As Command) As Integer

Parameters

item
Command

The Command to locate.

Returns

The zero-based index of the Command in the collection, if found; otherwise, -1.

Applies to