ArrangedElementCollection.IList.IndexOf(Object) 方法

定義

如需這個成員的描述,請參閱 IndexOf(Object) 方法。

 virtual int System.Collections.IList.IndexOf(System::Object ^ value) = System::Collections::IList::IndexOf;
int IList.IndexOf (object value);
int IList.IndexOf (object? value);
abstract member System.Collections.IList.IndexOf : obj -> int
override this.System.Collections.IList.IndexOf : obj -> int
Function IndexOf (value As Object) As Integer Implements IList.IndexOf

參數

value
Object

要在 IList 中尋找的 Object

傳回

如果可在清單中找到則為 value 的索引,否則為 -1。

實作

備註

這個方法是明確的介面成員實作。 只有在 ArrangedElementCollection 執行個體轉換成 IList 介面時,才能使用這個成員。

適用於