Queryable.OrderDescending 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.
Overloads
| Name | Description |
|---|---|
|
OrderDescending |
Sorts the elements of a sequence in descending order. |
|
OrderDescending |
Sorts the elements of a sequence in descending order. |
OrderDescending(IQueryable)
- Source:
- Queryable.cs
- Source:
- Queryable.cs
- Source:
- Queryable.cs
- Source:
- Queryable.cs
- Source:
- Queryable.cs
Sorts the elements of a sequence in descending order.
public:
generic
[System::Runtime::CompilerServices::Extension]
static System::Linq::IOrderedQueryable ^ OrderDescending(System::Linq::IQueryable ^ source);
public static System.Linq.IOrderedQueryable OrderDescending(this System.Linq.IQueryable source);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Enumerating collections as IQueryable can require creating new generic types or methods, which requires creating code at runtime. This may not work when AOT compiling.")]
public static System.Linq.IOrderedQueryable OrderDescending(this System.Linq.IQueryable source);
static member OrderDescending : System.Linq.IQueryable<'T> -> System.Linq.IOrderedQueryable<'T>
[]
static member OrderDescending : System.Linq.IQueryable<'T> -> System.Linq.IOrderedQueryable<'T>
Public Function OrderDescending(Of T) (source As IQueryable(Of T)) As IOrderedQueryable(Of T)
Type Parameters
- T
The type of the elements of source.
Parameters
- source
-
IQueryable
A sequence of values to order.
Returns
An IOrderedEnumerable
- Attributes
Exceptions
source is null.
Remarks
This method has at least one parameter of type Expression
The Ordersource
parameter. The result of calling CreateQuery
The query behavior that occurs as a result of executing an expression tree
that represents calling Ordersource parameter.
The expected behavior is that it sorts the elements of source by itself.
Applies to
OrderDescending(IQueryable, IComparer)
- Source:
- Queryable.cs
- Source:
- Queryable.cs
- Source:
- Queryable.cs
- Source:
- Queryable.cs
- Source:
- Queryable.cs
Sorts the elements of a sequence in descending order.
public:
generic
[System::Runtime::CompilerServices::Extension]
static System::Linq::IOrderedQueryable ^ OrderDescending(System::Linq::IQueryable ^ source, System::Collections::Generic::IComparer ^ comparer);
public static System.Linq.IOrderedQueryable OrderDescending(this System.Linq.IQueryable source, System.Collections.Generic.IComparer comparer);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Enumerating collections as IQueryable can require creating new generic types or methods, which requires creating code at runtime. This may not work when AOT compiling.")]
public static System.Linq.IOrderedQueryable OrderDescending(this System.Linq.IQueryable source, System.Collections.Generic.IComparer comparer);
static member OrderDescending : System.Linq.IQueryable<'T> * System.Collections.Generic.IComparer<'T> -> System.Linq.IOrderedQueryable<'T>
[]
static member OrderDescending : System.Linq.IQueryable<'T> * System.Collections.Generic.IComparer<'T> -> System.Linq.IOrderedQueryable<'T>
Public Function OrderDescending(Of T) (source As IQueryable(Of T), comparer As IComparer(Of T)) As IOrderedQueryable(Of T)
Type Parameters
- T
The type of the elements of source.
Parameters
- source
-
IQueryable
A sequence of values to order.
Returns
An IOrderedEnumerable
- Attributes
Exceptions
source is null.
Remarks
This method has at least one parameter of type Expression
The Ordersource
parameter. The result of calling CreateQuery
The query behavior that occurs as a result of executing an expression tree
that represents calling Ordersource parameter.
The expected behavior is that it sorts the elements of source by itself.