Share via


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
System_CAPS_pubmethod AttributeRoutingConvention(IEdmModel, HttpConfiguration)

Initializes a new instance of the AttributeRoutingConvention class.

System_CAPS_pubmethod AttributeRoutingConvention(IEdmModel, HttpConfiguration, IODataPathTemplateHandler)

Initializes a new instance of the AttributeRoutingConvention class.

System_CAPS_pubmethod AttributeRoutingConvention(IEdmModel, IEnumerable<HttpControllerDescriptor>)

Initializes a new instance of the AttributeRoutingConvention class.

System_CAPS_pubmethod AttributeRoutingConvention(IEdmModel, IEnumerable<HttpControllerDescriptor>, IODataPathTemplateHandler)

Initializes a new instance of the AttributeRoutingConvention class.

Properties

Name Description
System_CAPS_pubproperty Model

Gets the IEdmModel to be used for parsing the route templates.

System_CAPS_pubproperty ODataPathTemplateHandler

Gets the IODataPathTemplateHandler to be used for parsing the route templates.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod SelectAction(ODataPath, HttpControllerContext, ILookup<String, HttpActionDescriptor>)

System_CAPS_pubmethod SelectController(ODataPath, HttpRequestMessage)

System_CAPS_pubmethod ShouldMapController(HttpControllerDescriptor)

Specifies whether OData route attributes on this controller should be mapped.

System_CAPS_pubmethod 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