Represents a routing convention that looks for ODataRouteAttributes to match an ODataPath to a controller and an action.
Namespace:   System.Web.OData.Routing.Conventions
Assembly:  System.Web.OData (in System.Web.OData.dll)
Inheritance Hierarchy
System.Object
  System.Web.OData.Routing.Conventions.AttributeRoutingConvention
Syntax
public class AttributeRoutingConvention : IODataRoutingConvention
public ref class AttributeRoutingConvention : IODataRoutingConvention
type AttributeRoutingConvention = 
    class
        interface IODataRoutingConvention
    end
Public Class AttributeRoutingConvention
    Implements IODataRoutingConvention
Constructors
| Name | Description | |
|---|---|---|
| .jpeg) | AttributeRoutingConvention(IEdmModel, HttpConfiguration) | Initializes a new instance of the AttributeRoutingConvention class. | 
| .jpeg) | AttributeRoutingConvention(IEdmModel, HttpConfiguration, IODataPathTemplateHandler) | Initializes a new instance of the AttributeRoutingConvention class. | 
| .jpeg) | AttributeRoutingConvention(IEdmModel, IEnumerable<HttpControllerDescriptor>) | Initializes a new instance of the AttributeRoutingConvention class. | 
| .jpeg) | AttributeRoutingConvention(IEdmModel, IEnumerable<HttpControllerDescriptor>, IODataPathTemplateHandler) | Initializes a new instance of the AttributeRoutingConvention class. | 
Properties
| Name | Description | |
|---|---|---|
| .jpeg) | Model | Gets the IEdmModel to be used for parsing the route templates. | 
| .jpeg) | ODataPathTemplateHandler | Gets the IODataPathTemplateHandler to be used for parsing the route templates. | 
Methods
| Name | Description | |
|---|---|---|
| .jpeg) | Equals(Object) | (Inherited from Object.) | 
| .jpeg) | Finalize() | (Inherited from Object.) | 
| .jpeg) | GetHashCode() | (Inherited from Object.) | 
| .jpeg) | GetType() | (Inherited from Object.) | 
| .jpeg) | MemberwiseClone() | (Inherited from Object.) | 
| .jpeg) | SelectAction(ODataPath, HttpControllerContext, ILookup<String, HttpActionDescriptor>) | |
| .jpeg) | SelectController(ODataPath, HttpRequestMessage) | |
| .jpeg) | ShouldMapController(HttpControllerDescriptor) | Specifies whether OData route attributes on this controller should be mapped. | 
| .jpeg) | ToString() | (Inherited from Object.) | 
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
System.Web.OData.Routing.Conventions Namespace
Return to top