TypedTableBaseExtensions.Select<TRow,S> メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
TypedTableBase<T>の各要素を新しいフォームに投影します。
public:
generic <typename TRow, typename S>
where TRow : System::Data::DataRow[System::Runtime::CompilerServices::Extension]
static System::Data::EnumerableRowCollection<S> ^ Select(System::Data::TypedTableBase<TRow> ^ source, Func<TRow, S> ^ selector);
public static System.Data.EnumerableRowCollection<S> Select<TRow,S>(this System.Data.TypedTableBase<TRow> source, Func<TRow,S> selector) where TRow : System.Data.DataRow;
static member Select : System.Data.TypedTableBase<'Row (requires 'Row :> System.Data.DataRow)> * Func<'Row, 'S (requires 'Row :> System.Data.DataRow)> -> System.Data.EnumerableRowCollection<'S> (requires 'Row :> System.Data.DataRow)
<Extension()>
Public Function Select(Of TRow As DataRow, S As DataRow) (source As TypedTableBase(Of TRow), selector As Func(Of TRow, S)) As EnumerableRowCollection(Of S)
型パラメーター
- TRow
sourceの行要素の型 (DataRow)。
- S
パラメーター
- source
- TypedTableBase<TRow>
変換関数を呼び出すTypedTableBase<T>要素を含むDataRow。
- selector
- Func<TRow,S>
各要素に適用する変換関数。
返品
EnumerableRowCollection<TRow>の各要素で変換関数を呼び出した結果の要素を持つsource。
注釈
この射影方法では、変換関数 selector、ソース シーケンス内の値ごとに 1 つの値を生成 source必要があります。
selector自体がコレクションである値を返す場合、コンシューマーはサブシーケンスを手動で走査する必要があります。