Udostępnij za pośrednictwem


ModelComponentCollection.IndexOf Method

Definition

Overloads

IndexOf(IModelComponent)

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

IndexOf(String)

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

IndexOf(IModelComponent)

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

protected int IndexOf (Microsoft.AnalysisServices.IModelComponent item);
member this.IndexOf : Microsoft.AnalysisServices.IModelComponent -> int
Protected Function IndexOf (item As IModelComponent) As Integer

Parameters

item
IModelComponent

The item to locate.

Returns

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

Applies to

IndexOf(String)

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

protected int IndexOf (string key);
member this.IndexOf : string -> int
Protected Function IndexOf (key As String) As Integer

Parameters

key
String

The key of the IModelComponent to locate.

Returns

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

Applies to