 | ExtensionMethodsSort Method |
Create sort expression.
Namespace:
SanteDB.Core.Model
Assembly:
SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 2.2.1
Syntaxpublic static Expression Sort(
this Expression me,
string orderByProperty,
SortOrderType sortOrder
)
<ExtensionAttribute>
Public Shared Function Sort (
me As Expression,
orderByProperty As String,
sortOrder As SortOrderType
) As Expression
public:
[ExtensionAttribute]
static Expression^ Sort(
Expression^ me,
String^ orderByProperty,
SortOrderType sortOrder
)
[<ExtensionAttribute>]
static member Sort :
me : Expression *
orderByProperty : string *
sortOrder : SortOrderType -> Expression
Parameters
- me
- Type: System.Linq.ExpressionsExpression
Me. - orderByProperty
- Type: SystemString
The order by property. - sortOrder
- Type: SanteDB.Core.Model.MapSortOrderType
The sort order.
Return Value
Type:
ExpressionExpression.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Expression. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also