編輯

共用方式為


CompositeCollection.IndexOf(Object) Method

Definition

Returns the index in this collection where the given item is found.

public:
 virtual int IndexOf(System::Object ^ indexItem);
public int IndexOf (object indexItem);
abstract member IndexOf : obj -> int
override this.IndexOf : obj -> int
Public Function IndexOf (indexItem As Object) As Integer

Parameters

indexItem
Object

The item to retrieve the index for.

Returns

If the item appears in the collection, then the zero-based index in the collection where the given item is found; otherwise, -1.

Implements

Applies to