PrincipalValueCollection<T>.IndexOf(T) 方法

定义

返回指定对象的索引;如果该对象不在集合中,则返回 -1。Returns the index of the specified object, or -1 if the object is not in the collection.

public:
 virtual int IndexOf(T value);
public int IndexOf (T value);
abstract member IndexOf : 'T -> int
override this.IndexOf : 'T -> int
Public Function IndexOf (value As T) As Integer

参数

value
T

需要其索引的对象。The object whose index is required.

返回

一个 integerAn integer.

实现

注解

如果 @no__t 为 @no__t,则会引发 ArgumentNullExceptionThrows an ArgumentNullException if value is null.

适用于