AttributeRoutingConvention Class
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 | |
---|---|---|
AttributeRoutingConvention(IEdmModel, HttpConfiguration) | Initializes a new instance of the AttributeRoutingConvention class. |
|
AttributeRoutingConvention(IEdmModel, HttpConfiguration, IODataPathTemplateHandler) | Initializes a new instance of the AttributeRoutingConvention class. |
|
AttributeRoutingConvention(IEdmModel, IEnumerable<HttpControllerDescriptor>) | Initializes a new instance of the AttributeRoutingConvention class. |
|
AttributeRoutingConvention(IEdmModel, IEnumerable<HttpControllerDescriptor>, IODataPathTemplateHandler) | Initializes a new instance of the AttributeRoutingConvention class. |
Properties
Name | Description | |
---|---|---|
Model | Gets the IEdmModel to be used for parsing the route templates. |
|
ODataPathTemplateHandler | Gets the IODataPathTemplateHandler to be used for parsing the route templates. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
SelectAction(ODataPath, HttpControllerContext, ILookup<String, HttpActionDescriptor>) | ||
SelectController(ODataPath, HttpRequestMessage) | ||
ShouldMapController(HttpControllerDescriptor) | Specifies whether OData route attributes on this controller should be mapped. |
|
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