QueryExtensions.SortBy<T>(IQueryable<T>, String) 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.
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)
Type Parameters
- T
The generic type of the object.
Parameters
- source
- IQueryable<T>
The object to sort.
- sortExpression
- String
The sort expression.
Returns
The sorted version of the source
object.
Applies to
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.