DataView.FindRows 方法

定义

返回其列与指定的排序键值匹配的 DataRowView 对象数组。Returns an array of DataRowView objects whose columns match the specified sort key value.

重载

FindRows(Object)

返回其列与指定的排序键值匹配的 DataRowView 对象数组。Returns an array of DataRowView objects whose columns match the specified sort key value.

FindRows(Object[])

返回其列与指定的排序键值匹配的 DataRowView 对象数组。Returns an array of DataRowView objects whose columns match the specified sort key value.

FindRows(Object)

返回其列与指定的排序键值匹配的 DataRowView 对象数组。Returns an array of DataRowView objects whose columns match the specified sort key value.

public:
 cli::array <System::Data::DataRowView ^> ^ FindRows(System::Object ^ key);
public System.Data.DataRowView[] FindRows (object key);
member this.FindRows : obj -> System.Data.DataRowView[]
Public Function FindRows (key As Object) As DataRowView()

参数

key
Object

要搜索的列值,为 Object 类型。The column value, typed as Object, to search for.

返回

DataRowView 对象数组,其列与指定的排序键值匹配;或者,如果任何行都不包含指定的排序键值,则为空的 DataRowView 数组。An array of DataRowView objects whose columns match the specified sort key value; or, if no rows contain the specified sort key values, an empty DataRowView array.

另请参阅

FindRows(Object[])

返回其列与指定的排序键值匹配的 DataRowView 对象数组。Returns an array of DataRowView objects whose columns match the specified sort key value.

public:
 cli::array <System::Data::DataRowView ^> ^ FindRows(cli::array <System::Object ^> ^ key);
public System.Data.DataRowView[] FindRows (object[] key);
member this.FindRows : obj[] -> System.Data.DataRowView[]
Public Function FindRows (key As Object()) As DataRowView()

参数

key
Object[]

要搜索的列值数组,其类型为 ObjectAn array of column values, typed as Object, to search for.

返回

DataRowView 对象数组,其列与指定的排序键值匹配;或者,如果任何行都不包含指定的排序键值,则为空的 DataRowView 数组。An array of DataRowView objects whose columns match the specified sort key value; or, if no rows contain the specified sort key values, an empty DataRowView array.

另请参阅

适用于