Class ODataRoutingAttribute
Defines a controller-level attribute that can be used to enable OData action selection based on routing conventions.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public sealed class ODataRoutingAttribute : Attribute, IControllerConfiguration
- Inheritance
-
ODataRoutingAttribute
- Implements
-
IControllerConfiguration
- Inherited Members
Constructors
ODataRoutingAttribute()
public ODataRoutingAttribute()
Methods
Initialize(HttpControllerSettings, HttpControllerDescriptor)
Callback invoked to set per-controller overrides for this controllerDescriptor.
public void Initialize(HttpControllerSettings controllerSettings, HttpControllerDescriptor controllerDescriptor)
Parameters
controllerSettings
HttpControllerSettingsThe controller settings to initialize.
controllerDescriptor
HttpControllerDescriptorThe controller descriptor. Note that the System.Web.Http.Controllers.HttpControllerDescriptor can be associated with the derived controller type given that System.Web.Http.Controllers.IControllerConfiguration is inherited.