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.StringThe raw value for $orderby query. It can be null or empty.
context
Type: System.Web.Http.OData.ODataQueryContextThe ODataQueryContext which contains the IEdmModel and some type information
See Also
OrderByQueryOption Class
System.Web.Http.OData.Query Namespace
Return to top