ODataQueryOptions<TEntity> Constructor
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
'Declaration
Public Sub New ( _
context As ODataQueryContext, _
request As HttpRequestMessage _
)
'Usage
Dim context As ODataQueryContext
Dim request As HttpRequestMessage
Dim instance As New ODataQueryOptions(context, _
request)
public ODataQueryOptions(
ODataQueryContext context,
HttpRequestMessage request
)
public:
ODataQueryOptions(
ODataQueryContext^ context,
HttpRequestMessage^ request
)
new :
context:ODataQueryContext *
request:HttpRequestMessage -> ODataQueryOptions
public function ODataQueryOptions(
context : ODataQueryContext,
request : HttpRequestMessage
)
Parameters
- context
Type: System.Web.Http.OData.ODataQueryContext
The ODataQueryContext which contains the IEdmModel and some type information
- request
Type: System.Net.Http.HttpRequestMessage
The incoming request message