QueryExtensions.SortBy<T>(IQueryable<T>, String) メソッド

定義

並べ替え順序を指定します。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)

型パラメーター

T

オブジェクトのジェネリック型。The generic type of the object.

パラメーター

source
IQueryable<T>

並べ替えるオブジェクト。The object to sort.

sortExpression
String

並べ替え式。The sort expression.

戻り値

source オブジェクトの並べ替えられたバージョン。The sorted version of the source object.

適用対象