OrderedEnumerableRowCollection<TRow> OrderedEnumerableRowCollection<TRow> OrderedEnumerableRowCollection<TRow> OrderedEnumerableRowCollection<TRow> Class

Definition

Represents a collection of ordered DataRow objects returned from a query.

This API supports the product infrastructure and is not intended to be used directly from your code.

generic <typename TRow>
public ref class OrderedEnumerableRowCollection sealed : System::Data::EnumerableRowCollection<TRow>
public sealed class OrderedEnumerableRowCollection<TRow> : System.Data.EnumerableRowCollection<TRow>
type OrderedEnumerableRowCollection<'Row> = class
    inherit EnumerableRowCollection<'Row>
Public NotInheritable Class OrderedEnumerableRowCollection(Of TRow)
Inherits EnumerableRowCollection(Of TRow)

Type Parameters

TRow

The type of objects in the source sequence, typically DataRow.

Inheritance

Remarks

OrderedEnumerableRowCollection<TRow> is used to contain the results of a LINQ to DataSet query that returns an ordered sequence of rows. This EnumerableRowCollection<TRow> maintains a state of call LINQ operators for the originating query, and this state is used to construct the predicate and sorting expressions for any subsequent DataView.

An OrderedEnumerableRowCollection<TRow> cannot be directly instantiated because there are no public constructors for this class.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)

GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

Returns an enumerator for the collection of contained row objects.

(Inherited from EnumerableRowCollection<TRow>)

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

Returns an enumerator for the collection of DataRow objects.

(Inherited from EnumerableRowCollection<TRow>)

Extension Methods

CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>)

Returns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

Cast<TResult>(EnumerableRowCollection) Cast<TResult>(EnumerableRowCollection) Cast<TResult>(EnumerableRowCollection) Cast<TResult>(EnumerableRowCollection)

Converts the elements of an EnumerableRowCollection to the specified type.

OrderBy<TRow,TKey>(EnumerableRowCollection<TRow>, Func<TRow,TKey>) OrderBy<TRow,TKey>(EnumerableRowCollection<TRow>, Func<TRow,TKey>) OrderBy<TRow,TKey>(EnumerableRowCollection<TRow>, Func<TRow,TKey>) OrderBy<TRow,TKey>(EnumerableRowCollection<TRow>, Func<TRow,TKey>)

Sorts the rows of a EnumerableRowCollection in ascending order according to the specified key.

OrderBy<TRow,TKey>(EnumerableRowCollection<TRow>, Func<TRow,TKey>, IComparer<TKey>) OrderBy<TRow,TKey>(EnumerableRowCollection<TRow>, Func<TRow,TKey>, IComparer<TKey>) OrderBy<TRow,TKey>(EnumerableRowCollection<TRow>, Func<TRow,TKey>, IComparer<TKey>) OrderBy<TRow,TKey>(EnumerableRowCollection<TRow>, Func<TRow,TKey>, IComparer<TKey>)

Sorts the rows of a EnumerableRowCollection in ascending order according to the specified key and comparer.

OrderByDescending<TRow,TKey>(EnumerableRowCollection<TRow>, Func<TRow,TKey>) OrderByDescending<TRow,TKey>(EnumerableRowCollection<TRow>, Func<TRow,TKey>) OrderByDescending<TRow,TKey>(EnumerableRowCollection<TRow>, Func<TRow,TKey>) OrderByDescending<TRow,TKey>(EnumerableRowCollection<TRow>, Func<TRow,TKey>)

Sorts the rows of a EnumerableRowCollection in descending order according to the specified key.

OrderByDescending<TRow,TKey>(EnumerableRowCollection<TRow>, Func<TRow,TKey>, IComparer<TKey>) OrderByDescending<TRow,TKey>(EnumerableRowCollection<TRow>, Func<TRow,TKey>, IComparer<TKey>) OrderByDescending<TRow,TKey>(EnumerableRowCollection<TRow>, Func<TRow,TKey>, IComparer<TKey>) OrderByDescending<TRow,TKey>(EnumerableRowCollection<TRow>, Func<TRow,TKey>, IComparer<TKey>)

Sorts the rows of a EnumerableRowCollection in descending order according to the specified key and comparer.

Select<TRow,S>(EnumerableRowCollection<TRow>, Func<TRow,S>) Select<TRow,S>(EnumerableRowCollection<TRow>, Func<TRow,S>) Select<TRow,S>(EnumerableRowCollection<TRow>, Func<TRow,S>) Select<TRow,S>(EnumerableRowCollection<TRow>, Func<TRow,S>)

Projects each element of an EnumerableRowCollection<TRow> into a new form.

ThenBy<TRow,TKey>(OrderedEnumerableRowCollection<TRow>, Func<TRow,TKey>) ThenBy<TRow,TKey>(OrderedEnumerableRowCollection<TRow>, Func<TRow,TKey>) ThenBy<TRow,TKey>(OrderedEnumerableRowCollection<TRow>, Func<TRow,TKey>) ThenBy<TRow,TKey>(OrderedEnumerableRowCollection<TRow>, Func<TRow,TKey>)

Performs a secondary ordering of the rows of a EnumerableRowCollection in ascending order according to the specified key.

ThenBy<TRow,TKey>(OrderedEnumerableRowCollection<TRow>, Func<TRow,TKey>, IComparer<TKey>) ThenBy<TRow,TKey>(OrderedEnumerableRowCollection<TRow>, Func<TRow,TKey>, IComparer<TKey>) ThenBy<TRow,TKey>(OrderedEnumerableRowCollection<TRow>, Func<TRow,TKey>, IComparer<TKey>) ThenBy<TRow,TKey>(OrderedEnumerableRowCollection<TRow>, Func<TRow,TKey>, IComparer<TKey>)

Performs a secondary ordering of the rows of a EnumerableRowCollection in ascending order according to the specified key and comparer.

ThenByDescending<TRow,TKey>(OrderedEnumerableRowCollection<TRow>, Func<TRow,TKey>) ThenByDescending<TRow,TKey>(OrderedEnumerableRowCollection<TRow>, Func<TRow,TKey>) ThenByDescending<TRow,TKey>(OrderedEnumerableRowCollection<TRow>, Func<TRow,TKey>) ThenByDescending<TRow,TKey>(OrderedEnumerableRowCollection<TRow>, Func<TRow,TKey>)

Performs a secondary ordering of the rows of a EnumerableRowCollection in descending order according to the specified key.

ThenByDescending<TRow,TKey>(OrderedEnumerableRowCollection<TRow>, Func<TRow,TKey>, IComparer<TKey>) ThenByDescending<TRow,TKey>(OrderedEnumerableRowCollection<TRow>, Func<TRow,TKey>, IComparer<TKey>) ThenByDescending<TRow,TKey>(OrderedEnumerableRowCollection<TRow>, Func<TRow,TKey>, IComparer<TKey>) ThenByDescending<TRow,TKey>(OrderedEnumerableRowCollection<TRow>, Func<TRow,TKey>, IComparer<TKey>)

Performs a secondary ordering of the rows of a EnumerableRowCollection in descending order according to the specified key and comparer.

Where<TRow>(EnumerableRowCollection<TRow>, Func<TRow,Boolean>) Where<TRow>(EnumerableRowCollection<TRow>, Func<TRow,Boolean>) Where<TRow>(EnumerableRowCollection<TRow>, Func<TRow,Boolean>) Where<TRow>(EnumerableRowCollection<TRow>, Func<TRow,Boolean>)

Filters a sequence of rows based on the specified predicate.

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>)

Returns a collection of elements that contains the ancestors of every node in the source collection.

Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName)

Returns a filtered collection of elements that contains the ancestors of every node in the source collection. Only elements that have a matching XName are included in the collection.

DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>)

Returns a collection of the descendant nodes of every document and element in the source collection.

Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>)

Returns a collection of elements that contains the descendant elements of every element and document in the source collection.

Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName)

Returns a filtered collection of elements that contains the descendant elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection.

Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>)

Returns a collection of the child elements of every element and document in the source collection.

Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName)

Returns a filtered collection of the child elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection.

InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>)

Returns a collection of nodes that contains all nodes in the source collection, sorted in document order.

Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>)

Returns a collection of the child nodes of every document and element in the source collection.

Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>)

Removes every node in the source collection from its parent node.

Applies to

See also