LinkLabel.LinkCollection.IList.IndexOf(Object) 方法

定義

如需這個成員的說明,請參閱 IndexOf(Object)

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

參數

linkvalue
Object

要在 IList 中尋找的 Object

傳回

link 參數的索引 (如果在清單中找到的話),否則為 -1。

實作

備註

這個成員是明確介面成員實作, 只有在 LinkLabel.LinkCollection 執行個體轉換成 IList 介面時,才能使用這個成員。

適用於