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)
Syntax
public virtual void ValidateQuery(
HttpRequestMessage request,
ODataQueryOptions queryOptions
)
public:
virtual void ValidateQuery(
HttpRequestMessage^ request,
ODataQueryOptions^ queryOptions
)
abstract ValidateQuery :
request:HttpRequestMessage *
queryOptions:ODataQueryOptions -> unit
override ValidateQuery :
request:HttpRequestMessage *
queryOptions:ODataQueryOptions -> unit
Public Overridable Sub ValidateQuery (
request As HttpRequestMessage,
queryOptions As ODataQueryOptions
)
Parameters
request
Type: System.Net.Http.HttpRequestMessageThe incoming request.
queryOptions
Type: System.Web.Http.OData.Query.ODataQueryOptionsThe ODataQueryOptions instance constructed based on the incoming request.
See Also
EnableQueryAttribute Class
System.Web.Http.OData Namespace
Return to top