Share via


EnableQueryAttribute.ValidateQuery Method

Definition

Overloads

ValidateQuery(HttpRequest, ODataQueryOptions)

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.

ValidateQuery(HttpRequestMessage, ODataQueryOptions)

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.

ValidateQuery(HttpRequest, ODataQueryOptions)

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.AspNet.OData.Query.ODataQueryOptions queryOptions);
abstract member ValidateQuery : Microsoft.AspNetCore.Http.HttpRequest * Microsoft.AspNet.OData.Query.ODataQueryOptions -> unit
override this.ValidateQuery : Microsoft.AspNetCore.Http.HttpRequest * Microsoft.AspNet.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

ValidateQuery(HttpRequestMessage, ODataQueryOptions)

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 (System.Net.Http.HttpRequestMessage request, Microsoft.AspNet.OData.Query.ODataQueryOptions queryOptions);
abstract member ValidateQuery : System.Net.Http.HttpRequestMessage * Microsoft.AspNet.OData.Query.ODataQueryOptions -> unit
override this.ValidateQuery : System.Net.Http.HttpRequestMessage * Microsoft.AspNet.OData.Query.ODataQueryOptions -> unit
Public Overridable Sub ValidateQuery (request As HttpRequestMessage, queryOptions As ODataQueryOptions)

Parameters

request
HttpRequestMessage

The incoming request.

queryOptions
ODataQueryOptions

The ODataQueryOptions instance constructed based on the incoming request.

Applies to