TypedTableBaseExtensions.AsEnumerable<TRow> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enumerates the data row elements of the TypedTableBase<T> and returns an EnumerableRowCollection<TRow> object, where the generic parameter T
is DataRow. This object can be used in a LINQ expression or method query.
public:
generic <typename TRow>
where TRow : System::Data::DataRow[System::Runtime::CompilerServices::Extension]
static System::Data::EnumerableRowCollection<TRow> ^ AsEnumerable(System::Data::TypedTableBase<TRow> ^ source);
public static System.Data.EnumerableRowCollection<TRow> AsEnumerable<TRow> (this System.Data.TypedTableBase<TRow> source) where TRow : System.Data.DataRow;
static member AsEnumerable : System.Data.TypedTableBase<'Row (requires 'Row :> System.Data.DataRow)> -> System.Data.EnumerableRowCollection<'Row (requires 'Row :> System.Data.DataRow)> (requires 'Row :> System.Data.DataRow)
<Extension()>
Public Function AsEnumerable(Of TRow As DataRow) (source As TypedTableBase(Of TRow)) As EnumerableRowCollection(Of TRow)
Type Parameters
- TRow
The type to convert the elements of the source to.
Parameters
- source
- TypedTableBase<TRow>
The source TypedTableBase<T> to make enumerable.
Returns
An EnumerableRowCollection<TRow> object, where the generic parameter T
is DataRow.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應