QueryExtensions.SortBy<T>(IQueryable<T>, String) Método

Definição

Especifica uma ordem de classificação.Specifies a sort order.

public:
generic <typename T>
 where T : class[System::Runtime::CompilerServices::Extension]
 static System::Linq::IQueryable<T> ^ SortBy(System::Linq::IQueryable<T> ^ source, System::String ^ sortExpression);
public static System.Linq.IQueryable<T> SortBy<T> (this System.Linq.IQueryable<T> source, string sortExpression) where T : class;
static member SortBy : System.Linq.IQueryable<'T (requires 'T : null)> * string -> System.Linq.IQueryable<'T (requires 'T : null)> (requires 'T : null)
<Extension()>
Public Function SortBy(Of T As Class) (source As IQueryable(Of T), sortExpression As String) As IQueryable(Of T)

Parâmetros de tipo

T

O tipo genérico do objeto.The generic type of the object.

Parâmetros

source
IQueryable<T>

O objeto para classificar.The object to sort.

sortExpression
String

A expressão de classificação.The sort expression.

Retornos

A versão classificada do objeto source.The sorted version of the source object.

Aplica-se a