DataRowCollection.IndexOf(DataRow) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得指定 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。