Table of Contents

Class ODataRoutingAttribute

Namespace
System.Web.Http.OData
Assembly
System.Web.Http.OData.dll

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 HttpControllerSettings

The controller settings to initialize.

controllerDescriptor HttpControllerDescriptor

The 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.