TypedTableBaseExtensions 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
包含該 TypedTableBase<T> 類別的擴充方法。
public ref class TypedTableBaseExtensions abstract sealed
public static class TypedTableBaseExtensions
type TypedTableBaseExtensions = class
Public Module TypedTableBaseExtensions
- 繼承
-
TypedTableBaseExtensions
備註
該類別包含靜態擴充方法,定義 AsEnumerable 型別資料集的方法及標準查詢操作。
此類別無法實例化。
方法
| 名稱 | Description |
|---|---|
| AsEnumerable<TRow>(TypedTableBase<TRow>) |
列舉 的資料 TypedTableBase<T> 列元素,回傳一個 EnumerableRowCollection<TRow> 物件,其中一般參數 |
| ElementAtOrDefault<TRow>(TypedTableBase<TRow>, Int32) |
回傳序列中指定列的元素,若列超出範圍則回傳預設值。 |
| OrderBy<TRow,TKey>(TypedTableBase<TRow>, Func<TRow,TKey>, IComparer<TKey>) |
依照指定的鍵與比較器,將 的 TypedTableBase<T> 列按升排序。 |
| OrderBy<TRow,TKey>(TypedTableBase<TRow>, Func<TRow,TKey>) |
依照指定的鍵數,將 的 TypedTableBase<T> 列排序為升序。 |
| OrderByDescending<TRow,TKey>(TypedTableBase<TRow>, Func<TRow,TKey>, IComparer<TKey>) |
依照指定的鍵與比較器,將 a TypedTableBase<T> 的列按降序排序。 |
| OrderByDescending<TRow,TKey>(TypedTableBase<TRow>, Func<TRow,TKey>) |
依照指定鍵數,將 的 TypedTableBase<T> 列排序為降序。 |
| Select<TRow,S>(TypedTableBase<TRow>, Func<TRow,S>) |
將 A TypedTableBase<T> 的每個元素投射成新的形態。 |
| Where<TRow>(TypedTableBase<TRow>, Func<TRow,Boolean>) |
根據指定的謂詞過濾一列。 |