Share via


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

See Also

Reference

ODataQueryOptions<TEntity> Class

System.Web.Http.OData.Query Namespace