OrderByClause Constructor
Initializes a new instance of the OrderByClause class.
Namespace: Microsoft.Data.OData.Query.SemanticAst
Assembly: Microsoft.Data.OData (in Microsoft.Data.OData.dll)
Syntax
'Declaration
Public Sub New ( _
thenBy As OrderByClause, _
expression As SingleValueNode, _
direction As OrderByDirection, _
rangeVariable As RangeVariable _
)
'Usage
Dim thenBy As OrderByClause
Dim expression As SingleValueNode
Dim direction As OrderByDirection
Dim rangeVariable As RangeVariable
Dim instance As New OrderByClause(thenBy, _
expression, direction, rangeVariable)
public OrderByClause(
OrderByClause thenBy,
SingleValueNode expression,
OrderByDirection direction,
RangeVariable rangeVariable
)
public:
OrderByClause(
OrderByClause^ thenBy,
SingleValueNode^ expression,
OrderByDirection direction,
RangeVariable^ rangeVariable
)
new :
thenBy:OrderByClause *
expression:SingleValueNode *
direction:OrderByDirection *
rangeVariable:RangeVariable -> OrderByClause
public function OrderByClause(
thenBy : OrderByClause,
expression : SingleValueNode,
direction : OrderByDirection,
rangeVariable : RangeVariable
)
Parameters
- thenBy
Type: Microsoft.Data.OData.Query.SemanticAst.OrderByClause
The next orderby to perform after performing this orderby, can be null in the case of only a single orderby expression.
- expression
Type: Microsoft.Data.OData.Query.SemanticAst.SingleValueNode
The order-by expression. Cannot be null.
- direction
Type: Microsoft.Data.OData.Query.OrderByDirection
The direction to order.
- rangeVariable
Type: Microsoft.Data.OData.Query.SemanticAst.RangeVariable
The range variable for the expression which represents a single value from the collection we iterate over.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | Throws if the input expression or rangeVariable is null. |