Share via


EnableQueryAttribute.ValidateQuery(HttpRequest, ODataQueryOptions) Method

Definition

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.

Applies to