ODataHttpConfigurationExtensions.EnableQuerySupport Method
Namespace: System.Web.Http
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Overload List
Name | Description | |
---|---|---|
EnableQuerySupport(HttpConfiguration) | Obsolete.Enables query support for actions with an IQueryable or IQueryable<T> return type. To avoid processing unexpected or malicious queries, use the validation settings on EnableQueryAttribute to validate incoming queries. For more information, visit https://go.microsoft.com/fwlink/?LinkId=279712. |
|
EnableQuerySupport(HttpConfiguration, IActionFilter) | Obsolete.Enables query support for actions with an IQueryable or IQueryable<T> return type. To avoid processing unexpected or malicious queries, use the validation settings on EnableQueryAttribute to validate incoming queries. For more information, visit https://go.microsoft.com/fwlink/?LinkId=279712. |
See Also
ODataHttpConfigurationExtensions Class
System.Web.Http Namespace
Return to top
ODataHttpConfigurationExtensions.EnableQuerySupport Method (HttpConfiguration)
Note: This API is now obsolete.
Enables query support for actions with an IQueryable or IQueryable<T> return type. To avoid processing unexpected or malicious queries, use the validation settings on EnableQueryAttribute to validate incoming queries. For more information, visit https://go.microsoft.com/fwlink/?LinkId=279712.
Syntax
[ObsoleteAttribute("This method is obsolete; use the AddODataQueryFilter method from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")]
public static void EnableQuerySupport(
this HttpConfiguration configuration
)
public:
[ObsoleteAttribute("This method is obsolete; use the AddODataQueryFilter method from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")]
[ExtensionAttribute]
static void EnableQuerySupport(
HttpConfiguration^ configuration
)
[<ObsoleteAttribute("This method is obsolete; use the AddODataQueryFilter method from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")>]
static member EnableQuerySupport :
configuration:HttpConfiguration -> unit
<ObsoleteAttribute("This method is obsolete; use the AddODataQueryFilter method from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")>
<ExtensionAttribute>
Public Shared Sub EnableQuerySupport (
configuration As HttpConfiguration
)
Parameters
configuration
Type: System.Web.Http.HttpConfigurationThe server configuration.
Return to top
ODataHttpConfigurationExtensions.EnableQuerySupport Method (HttpConfiguration, IActionFilter)
Note: This API is now obsolete.
Enables query support for actions with an IQueryable or IQueryable<T> return type. To avoid processing unexpected or malicious queries, use the validation settings on EnableQueryAttribute to validate incoming queries. For more information, visit https://go.microsoft.com/fwlink/?LinkId=279712.
Syntax
[ObsoleteAttribute("This method is obsolete; use the AddODataQueryFilter method from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")]
public static void EnableQuerySupport(
this HttpConfiguration configuration,
IActionFilter queryFilter
)
public:
[ObsoleteAttribute("This method is obsolete; use the AddODataQueryFilter method from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")]
[ExtensionAttribute]
static void EnableQuerySupport(
HttpConfiguration^ configuration,
IActionFilter^ queryFilter
)
[<ObsoleteAttribute("This method is obsolete; use the AddODataQueryFilter method from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")>]
static member EnableQuerySupport :
configuration:HttpConfiguration *
queryFilter:IActionFilter -> unit
<ObsoleteAttribute("This method is obsolete; use the AddODataQueryFilter method from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")>
<ExtensionAttribute>
Public Shared Sub EnableQuerySupport (
configuration As HttpConfiguration,
queryFilter As IActionFilter
)
Parameters
configuration
Type: System.Web.Http.HttpConfigurationThe server configuration.
queryFilter
Type: System.Web.Http.Filters.IActionFilterThe action filter that executes the query.
Return to top