Share via


OrderByQueryOption(String, ODataQueryContext, ODataQueryOptionParser) Constructor

Definition

Initialize a new instance of OrderByQueryOption based on the raw $orderby value and an EdmModel from ODataQueryContext.

public OrderByQueryOption (string rawValue, Microsoft.AspNet.OData.ODataQueryContext context, Microsoft.OData.UriParser.ODataQueryOptionParser queryOptionParser);
new Microsoft.AspNet.OData.Query.OrderByQueryOption : string * Microsoft.AspNet.OData.ODataQueryContext * Microsoft.OData.UriParser.ODataQueryOptionParser -> Microsoft.AspNet.OData.Query.OrderByQueryOption
Public Sub New (rawValue As String, context As ODataQueryContext, queryOptionParser As ODataQueryOptionParser)

Parameters

rawValue
String

The raw value for $orderby query. It can be null or empty.

context
ODataQueryContext

The ODataQueryContext which contains the IEdmModel and some type information

queryOptionParser
ODataQueryOptionParser

The ODataQueryOptionParser which is used to parse the query option.

Applies to