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

要搜尋的資料行值,輸入為 ObjectThe 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.

另請參閱

適用於