Partager via


ODataRoutingConventions.CreateDefaultWithAttributeRouting Method (HttpConfiguration, IEdmModel)

 

Creates a mutable list of the default OData routing conventions with attribute routing enabled.

Namespace:   System.Web.OData.Routing.Conventions
Assembly:  System.Web.OData (in System.Web.OData.dll)

Syntax

public static IList<IODataRoutingConvention> CreateDefaultWithAttributeRouting(
    HttpConfiguration configuration,
    IEdmModel model
)
public:
static IList<IODataRoutingConvention^>^ CreateDefaultWithAttributeRouting(
    HttpConfiguration^ configuration,
    IEdmModel^ model
)
static member CreateDefaultWithAttributeRouting : 
        configuration:HttpConfiguration *
        model:IEdmModel -> IList<IODataRoutingConvention>
Public Shared Function CreateDefaultWithAttributeRouting (
    configuration As HttpConfiguration,
    model As IEdmModel
) As IList(Of IODataRoutingConvention)

Parameters

Return Value

Type: System.Collections.Generic.IList<IODataRoutingConvention>

A mutable list of the default OData routing conventions.

See Also

ODataRoutingConventions Class
System.Web.OData.Routing.Conventions Namespace

Return to top