ListSortDescriptionCollection.IndexOf(Object) 方法

定义

返回集合中指定项的索引。Returns the index of the specified item in the collection.

public:
 virtual int IndexOf(System::Object ^ value);
public int IndexOf (object value);
abstract member IndexOf : obj -> int
override this.IndexOf : obj -> int
Public Function IndexOf (value As Object) As Integer

参数

value
Object

要在集合中查找的 ObjectThe Object to locate in the collection.

返回

Int32

如果在列表中找到,则为 value 的索引;否则为 -1。The index of value if found in the list; otherwise, -1.

实现

适用于