ODataQueryOptions Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ODataQueryOptions(ODataQueryContext, HttpRequest) |
Initializes a new instance of the ODataQueryOptions class based on the incoming request and some metadata information from the ODataQueryContext. |
ODataQueryOptions(ODataQueryContext, HttpRequestMessage) |
Initializes a new instance of the ODataQueryOptions class based on the incoming request and some metadata information from the ODataQueryContext. |
ODataQueryOptions(ODataQueryContext, HttpRequest)
Initializes a new instance of the ODataQueryOptions class based on the incoming request and some metadata information from the ODataQueryContext.
public ODataQueryOptions (Microsoft.AspNet.OData.ODataQueryContext context, Microsoft.AspNetCore.Http.HttpRequest request);
new Microsoft.AspNet.OData.Query.ODataQueryOptions : Microsoft.AspNet.OData.ODataQueryContext * Microsoft.AspNetCore.Http.HttpRequest -> Microsoft.AspNet.OData.Query.ODataQueryOptions
Public Sub New (context As ODataQueryContext, request As HttpRequest)
Parameters
- context
- ODataQueryContext
The ODataQueryContext which contains the IEdmModel and some type information.
- request
- HttpRequest
The incoming request message.
Remarks
This signature uses types that are AspNetCore-specific. While the AspNet version of this class makes the HttpRequest available, AspNetCore is unhappy when it sees the HttpRequest during validation so HttpRequest is not part of the public Api for ODataQueryOptions.
Applies to
ODataQueryOptions(ODataQueryContext, HttpRequestMessage)
Initializes a new instance of the ODataQueryOptions class based on the incoming request and some metadata information from the ODataQueryContext.
public ODataQueryOptions (Microsoft.AspNet.OData.ODataQueryContext context, System.Net.Http.HttpRequestMessage request);
new Microsoft.AspNet.OData.Query.ODataQueryOptions : Microsoft.AspNet.OData.ODataQueryContext * System.Net.Http.HttpRequestMessage -> Microsoft.AspNet.OData.Query.ODataQueryOptions
Public Sub New (context As ODataQueryContext, request As HttpRequestMessage)
Parameters
- context
- ODataQueryContext
The ODataQueryContext which contains the IEdmModel and some type information.
- request
- HttpRequestMessage
The incoming request message.
Remarks
This signature uses types that are AspNet-specific.