ODataQueryOptions Constructor (ODataQueryContext, HttpRequestMessage)
Initializes a new instance of the ODataQueryOptions class based on the incoming request and some metadata information from the ODataQueryContext.
Namespace: System.Web.Http.OData.Query
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
public ODataQueryOptions(
ODataQueryContext context,
HttpRequestMessage request
)
public:
ODataQueryOptions(
ODataQueryContext^ context,
HttpRequestMessage^ request
)
new :
context:ODataQueryContext *
request:HttpRequestMessage -> ODataQueryOptions
Public Sub New (
context As ODataQueryContext,
request As HttpRequestMessage
)
Parameters
context
Type: System.Web.Http.OData.ODataQueryContextThe ODataQueryContext which contains the IEdmModel and some type information.
request
Type: System.Net.Http.HttpRequestMessageThe incoming request message.
See Also
ODataQueryOptions Class
System.Web.Http.OData.Query Namespace
Return to top