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。