Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

EnableQueryAttribute::ValidateQuery Method (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.

Namespace:   System.Web.Http.OData
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

public:
virtual void ValidateQuery(
	HttpRequestMessage^ request,
	ODataQueryOptions^ queryOptions
)

Parameters

request
Type: System.Net.Http::HttpRequestMessage^

The incoming request.

queryOptions
Type: System.Web.Http.OData.Query::ODataQueryOptions^

The ODataQueryOptions instance constructed based on the incoming request.

Return to top
Show: