Share via


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

See Also

EnableQueryAttribute Class
System.Web.Http.OData Namespace

Return to top