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.

實作

適用於