DataRowCollection.IndexOf(DataRow) 方法

定義

取得指定 DataRow 物件的索引。

public:
 int IndexOf(System::Data::DataRow ^ row);
public int IndexOf (System.Data.DataRow? row);
public int IndexOf (System.Data.DataRow row);
member this.IndexOf : System.Data.DataRow -> int
Public Function IndexOf (row As DataRow) As Integer

參數

row
DataRow

要搜尋的 DataRow

傳回

資料列的以零起始之索引;如果在集合中找不到此資料列,則為 -1。

適用於