Share via


ODataRoutingConventions.CreateDefaultWithAttributeRouting Method

Definition

Overloads

CreateDefaultWithAttributeRouting(String, IRouteBuilder)

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

CreateDefaultWithAttributeRouting(String, IServiceProvider)
CreateDefaultWithAttributeRouting(String, HttpConfiguration)

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

CreateDefaultWithAttributeRouting(String, IRouteBuilder)

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

public static System.Collections.Generic.IList<Microsoft.AspNet.OData.Routing.Conventions.IODataRoutingConvention> CreateDefaultWithAttributeRouting (string routeName, Microsoft.AspNetCore.Routing.IRouteBuilder builder);
static member CreateDefaultWithAttributeRouting : string * Microsoft.AspNetCore.Routing.IRouteBuilder -> System.Collections.Generic.IList<Microsoft.AspNet.OData.Routing.Conventions.IODataRoutingConvention>
Public Shared Function CreateDefaultWithAttributeRouting (routeName As String, builder As IRouteBuilder) As IList(Of IODataRoutingConvention)

Parameters

routeName
String

The name of the route.

builder
IRouteBuilder

The IRouteBuilder to add the route to.

Returns

A mutable list of the default OData routing conventions.

Applies to

CreateDefaultWithAttributeRouting(String, IServiceProvider)

public static System.Collections.Generic.IList<Microsoft.AspNet.OData.Routing.Conventions.IODataRoutingConvention> CreateDefaultWithAttributeRouting (string routeName, IServiceProvider serviceProvider);
static member CreateDefaultWithAttributeRouting : string * IServiceProvider -> System.Collections.Generic.IList<Microsoft.AspNet.OData.Routing.Conventions.IODataRoutingConvention>
Public Shared Function CreateDefaultWithAttributeRouting (routeName As String, serviceProvider As IServiceProvider) As IList(Of IODataRoutingConvention)

Parameters

routeName
String
serviceProvider
IServiceProvider

Returns

Applies to

CreateDefaultWithAttributeRouting(String, HttpConfiguration)

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

public static System.Collections.Generic.IList<Microsoft.AspNet.OData.Routing.Conventions.IODataRoutingConvention> CreateDefaultWithAttributeRouting (string routeName, System.Web.Http.HttpConfiguration configuration);
static member CreateDefaultWithAttributeRouting : string * System.Web.Http.HttpConfiguration -> System.Collections.Generic.IList<Microsoft.AspNet.OData.Routing.Conventions.IODataRoutingConvention>
Public Shared Function CreateDefaultWithAttributeRouting (routeName As String, configuration As HttpConfiguration) As IList(Of IODataRoutingConvention)

Parameters

routeName
String

The name of the route.

configuration
System.Web.Http.HttpConfiguration

The server configuration.

Returns

A mutable list of the default OData routing conventions.

Applies to