Share via


OrderByQueryOption Constructor (String, ODataQueryContext)

 

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

Namespace:   System.Web.Http.OData.Query
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

Syntax

public OrderByQueryOption(
    string rawValue,
    ODataQueryContext context
)
public:
OrderByQueryOption(
    String^ rawValue,
    ODataQueryContext^ context
)
new : 
        rawValue:string *
        context:ODataQueryContext -> OrderByQueryOption
Public Sub New (
    rawValue As String,
    context As ODataQueryContext
)

Parameters

  • rawValue
    Type: System.String

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

See Also

OrderByQueryOption Class
System.Web.Http.OData.Query Namespace

Return to top