PrincipalValueCollection<T>.IList.IndexOf(Object) 方法

定義

傳回所指定物件在集合中的索引,如果物件不在集合中則傳回 -1。

 virtual int System.Collections.IList.IndexOf(System::Object ^ value) = System::Collections::IList::IndexOf;
int IList.IndexOf (object value);
[System.Security.SecurityCritical]
int IList.IndexOf (object value);
abstract member System.Collections.IList.IndexOf : obj -> int
override this.System.Collections.IList.IndexOf : obj -> int
[<System.Security.SecurityCritical>]
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

物件。

傳回

integer

實作

屬性

適用於