ReadOnlyList<T>.IndexOf(T) 方法

定義

決定特定項目的 ReadOnlyList<T>索引。

public int IndexOf(T item);
member this.IndexOf : 'T -> int
Public Function IndexOf (item As T) As Integer

參數

item
T

要定位於 ReadOnlyList<T>的物件。

傳回

若在列表中找到項目索引;否則,為負1。

適用於