GlobalTypeCollection.IList.IndexOf(Object) 方法

定义

获取项在集合中的位置。Gets the position of an item in the collection.

 virtual int System.Collections.IList.IndexOf(System::Object ^ item) = System::Collections::IList::IndexOf;
 virtual int System.Collections.IList.IndexOf(Platform::Object ^ item) = System::Collections::IList::IndexOf;
int System.Collections.IList.IndexOf(winrt::Windows::Foundation::IInspectable const & item);
int IList.IndexOf (object item);
abstract member System.Collections.IList.IndexOf : obj -> int
override this.System.Collections.IList.IndexOf : obj -> int
Function IndexOf (item As Object) As Integer Implements IList.IndexOf

参数

item
Object

要查找的项。The item to find.

返回

Int32

项的位置; 如果未找到该项,则为-1。The position of the item, or -1 if it was not found.

实现

适用于