EnableQueryAttribute.ValidateQuery(HttpRequest, ODataQueryOptions) Method
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.
Validates the OData query in the incoming request. By default, the implementation throws an exception if the query contains unsupported query parameters. Override this method to perform additional validation of the query.
public virtual void ValidateQuery(Microsoft.AspNetCore.Http.HttpRequest request, Microsoft.AspNetCore.OData.Query.ODataQueryOptions queryOptions);
abstract member ValidateQuery : Microsoft.AspNetCore.Http.HttpRequest * Microsoft.AspNetCore.OData.Query.ODataQueryOptions -> unit
override this.ValidateQuery : Microsoft.AspNetCore.Http.HttpRequest * Microsoft.AspNetCore.OData.Query.ODataQueryOptions -> unit
Public Overridable Sub ValidateQuery (request As HttpRequest, queryOptions As ODataQueryOptions)
Parameters
- request
- HttpRequest
The incoming request.
- queryOptions
- ODataQueryOptions
The ODataQueryOptions instance constructed based on the incoming request.