Partager via


DataItemCollection.IndexOf(DataItem) Method

Definition

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

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

Parameters

item
DataItem

The DataItem to locate.

Returns

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

Applies to