Namespace:   System.Web.OData.Routing.Conventions
Assembly:  System.Web.OData (in System.Web.OData.dll)
Overload List
| 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. | 
See Also
AttributeRoutingConvention Class
System.Web.OData.Routing.Conventions Namespace
Return to top
AttributeRoutingConvention Constructor (IEdmModel, HttpConfiguration)
Initializes a new instance of the AttributeRoutingConvention class.
Syntax
public AttributeRoutingConvention(
    IEdmModel model,
    HttpConfiguration configuration
)
public:
AttributeRoutingConvention(
    IEdmModel^ model,
    HttpConfiguration^ configuration
)
new : 
        model:IEdmModel *
        configuration:HttpConfiguration -> AttributeRoutingConvention
Public Sub New (
    model As IEdmModel,
    configuration As HttpConfiguration
)
Parameters
- model 
 Type: Microsoft.OData.Edm.IEdmModel- The IEdmModel to be used for parsing the route templates. 
- configuration 
 Type: System.Web.Http.HttpConfiguration- The HttpConfiguration to use for figuring out all the controllers to look for a match. 
Return to top
AttributeRoutingConvention Constructor (IEdmModel, HttpConfiguration, IODataPathTemplateHandler)
Initializes a new instance of the AttributeRoutingConvention class.
Syntax
public AttributeRoutingConvention(
    IEdmModel model,
    HttpConfiguration configuration,
    IODataPathTemplateHandler pathTemplateHandler
)
public:
AttributeRoutingConvention(
    IEdmModel^ model,
    HttpConfiguration^ configuration,
    IODataPathTemplateHandler^ pathTemplateHandler
)
new : 
        model:IEdmModel *
        configuration:HttpConfiguration *
        pathTemplateHandler:IODataPathTemplateHandler -> AttributeRoutingConvention
Public Sub New (
    model As IEdmModel,
    configuration As HttpConfiguration,
    pathTemplateHandler As IODataPathTemplateHandler
)
Parameters
- model 
 Type: Microsoft.OData.Edm.IEdmModel- The IEdmModel to be used for parsing the route templates. 
- configuration 
 Type: System.Web.Http.HttpConfiguration- The HttpConfiguration to use for figuring out all the controllers to look for a match. 
- pathTemplateHandler 
 Type: System.Web.OData.Routing.IODataPathTemplateHandler- The path template handler to be used for parsing the path templates. 
Return to top
AttributeRoutingConvention Constructor (IEdmModel, IEnumerable<HttpControllerDescriptor>)
Initializes a new instance of the AttributeRoutingConvention class.
Syntax
public AttributeRoutingConvention(
    IEdmModel model,
    IEnumerable<HttpControllerDescriptor> controllers
)
public:
AttributeRoutingConvention(
    IEdmModel^ model,
    IEnumerable<HttpControllerDescriptor^>^ controllers
)
new : 
        model:IEdmModel *
        controllers:IEnumerable<HttpControllerDescriptor> -> AttributeRoutingConvention
Public Sub New (
    model As IEdmModel,
    controllers As IEnumerable(Of HttpControllerDescriptor)
)
Parameters
- model 
 Type: Microsoft.OData.Edm.IEdmModel- The IEdmModel to be used for parsing the route templates. 
- controllers 
 Type: System.Collections.Generic.IEnumerable<HttpControllerDescriptor>- The collection of controllers to search for a match. 
Return to top
AttributeRoutingConvention Constructor (IEdmModel, IEnumerable<HttpControllerDescriptor>, IODataPathTemplateHandler)
Initializes a new instance of the AttributeRoutingConvention class.
Syntax
public AttributeRoutingConvention(
    IEdmModel model,
    IEnumerable<HttpControllerDescriptor> controllers,
    IODataPathTemplateHandler pathTemplateHandler
)
public:
AttributeRoutingConvention(
    IEdmModel^ model,
    IEnumerable<HttpControllerDescriptor^>^ controllers,
    IODataPathTemplateHandler^ pathTemplateHandler
)
new : 
        model:IEdmModel *
        controllers:IEnumerable<HttpControllerDescriptor> *
        pathTemplateHandler:IODataPathTemplateHandler -> AttributeRoutingConvention
Public Sub New (
    model As IEdmModel,
    controllers As IEnumerable(Of HttpControllerDescriptor),
    pathTemplateHandler As IODataPathTemplateHandler
)
Parameters
- model 
 Type: Microsoft.OData.Edm.IEdmModel- The IEdmModel to be used for parsing the route templates. 
- controllers 
 Type: System.Collections.Generic.IEnumerable<HttpControllerDescriptor>- The collection of controllers to search for a match. 
- pathTemplateHandler 
 Type: System.Web.OData.Routing.IODataPathTemplateHandler- The path template handler to be used for parsing the path templates. 
Return to top