StateManagedCollection.IList.IndexOf(Object) 方法

定義

判斷 StateManagedCollection 集合中指定之項目的索引。

 virtual int System.Collections.IList.IndexOf(System::Object ^ value) = System::Collections::IList::IndexOf;
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

要在 StateManagedCollection 中尋找的物件。

傳回

Int32

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

實作

備註

在傳回索引之前,會 OnValidate 呼叫 方法來驗證 value

適用於

另請參閱