Partilhar via


ODataRoute Construtores

Definição

Sobrecargas

ODataRoute(String, ODataPathRouteConstraint)

Inicializa uma nova instância da classe ODataRoute.

ODataRoute(String, IHttpRouteConstraint)

Inicializa uma nova instância da classe ODataRoute.

ODataRoute(IRouter, String, String, ODataPathRouteConstraint, IInlineConstraintResolver)

Inicializa uma nova instância da classe ODataRoute.

ODataRoute(IRouter, String, String, IRouteConstraint, IInlineConstraintResolver)

Inicializa uma nova instância da classe ODataRoute.

ODataRoute(String, ODataPathRouteConstraint, HttpRouteValueDictionary, HttpRouteValueDictionary, HttpRouteValueDictionary, HttpMessageHandler)

Inicializa uma nova instância da classe ODataRoute.

ODataRoute(String, IHttpRouteConstraint, HttpRouteValueDictionary, HttpRouteValueDictionary, HttpRouteValueDictionary, HttpMessageHandler)

Inicializa uma nova instância da classe ODataRoute.

ODataRoute(String, ODataPathRouteConstraint)

Inicializa uma nova instância da classe ODataRoute.

public ODataRoute (string routePrefix, Microsoft.AspNet.OData.Routing.ODataPathRouteConstraint pathConstraint);
new Microsoft.AspNet.OData.Routing.ODataRoute : string * Microsoft.AspNet.OData.Routing.ODataPathRouteConstraint -> Microsoft.AspNet.OData.Routing.ODataRoute
Public Sub New (routePrefix As String, pathConstraint As ODataPathRouteConstraint)

Parâmetros

routePrefix
String

O prefixo de rota.

pathConstraint
ODataPathRouteConstraint

A restrição do caminho OData.

Aplica-se a

ODataRoute(String, IHttpRouteConstraint)

Inicializa uma nova instância da classe ODataRoute.

public ODataRoute (string routePrefix, System.Web.Http.Routing.IHttpRouteConstraint routeConstraint);
new Microsoft.AspNet.OData.Routing.ODataRoute : string * System.Web.Http.Routing.IHttpRouteConstraint -> Microsoft.AspNet.OData.Routing.ODataRoute
Public Sub New (routePrefix As String, routeConstraint As IHttpRouteConstraint)

Parâmetros

routePrefix
String

O prefixo de rota.

routeConstraint
System.Web.Http.Routing.IHttpRouteConstraint

A restrição de rota.

Comentários

Essa assinatura usa tipos específicos de AspNet.

Aplica-se a

ODataRoute(IRouter, String, String, ODataPathRouteConstraint, IInlineConstraintResolver)

Inicializa uma nova instância da classe ODataRoute.

public ODataRoute (Microsoft.AspNetCore.Routing.IRouter target, string routeName, string routePrefix, Microsoft.AspNet.OData.Routing.ODataPathRouteConstraint routeConstraint, Microsoft.AspNetCore.Routing.IInlineConstraintResolver resolver);
new Microsoft.AspNet.OData.Routing.ODataRoute : Microsoft.AspNetCore.Routing.IRouter * string * string * Microsoft.AspNet.OData.Routing.ODataPathRouteConstraint * Microsoft.AspNetCore.Routing.IInlineConstraintResolver -> Microsoft.AspNet.OData.Routing.ODataRoute
Public Sub New (target As IRouter, routeName As String, routePrefix As String, routeConstraint As ODataPathRouteConstraint, resolver As IInlineConstraintResolver)

Parâmetros

target
IRouter

O roteador de destino.

routeName
String

O nome da rota.

routePrefix
String

O prefixo de rota.

routeConstraint
ODataPathRouteConstraint

A restrição de rota OData.

resolver
IInlineConstraintResolver

O resolvedor de restrições embutidas.

Comentários

Essa assinatura usa tipos específicos de AspNetCore.

Aplica-se a

ODataRoute(IRouter, String, String, IRouteConstraint, IInlineConstraintResolver)

Inicializa uma nova instância da classe ODataRoute.

public ODataRoute (Microsoft.AspNetCore.Routing.IRouter target, string routeName, string routePrefix, Microsoft.AspNetCore.Routing.IRouteConstraint routeConstraint, Microsoft.AspNetCore.Routing.IInlineConstraintResolver resolver);
new Microsoft.AspNet.OData.Routing.ODataRoute : Microsoft.AspNetCore.Routing.IRouter * string * string * Microsoft.AspNetCore.Routing.IRouteConstraint * Microsoft.AspNetCore.Routing.IInlineConstraintResolver -> Microsoft.AspNet.OData.Routing.ODataRoute
Public Sub New (target As IRouter, routeName As String, routePrefix As String, routeConstraint As IRouteConstraint, resolver As IInlineConstraintResolver)

Parâmetros

target
IRouter

O roteador de destino.

routeName
String

O nome da rota.

routePrefix
String

O prefixo de rota.

routeConstraint
IRouteConstraint

A restrição de rota OData.

resolver
IInlineConstraintResolver

O resolvedor de restrições embutidas.

Comentários

Essa assinatura usa tipos específicos de AspNetCore.

Aplica-se a

ODataRoute(String, ODataPathRouteConstraint, HttpRouteValueDictionary, HttpRouteValueDictionary, HttpRouteValueDictionary, HttpMessageHandler)

Inicializa uma nova instância da classe ODataRoute.

public ODataRoute (string routePrefix, Microsoft.AspNet.OData.Routing.ODataPathRouteConstraint pathConstraint, System.Web.Http.Routing.HttpRouteValueDictionary defaults, System.Web.Http.Routing.HttpRouteValueDictionary constraints, System.Web.Http.Routing.HttpRouteValueDictionary dataTokens, System.Net.Http.HttpMessageHandler handler);
new Microsoft.AspNet.OData.Routing.ODataRoute : string * Microsoft.AspNet.OData.Routing.ODataPathRouteConstraint * System.Web.Http.Routing.HttpRouteValueDictionary * System.Web.Http.Routing.HttpRouteValueDictionary * System.Web.Http.Routing.HttpRouteValueDictionary * System.Net.Http.HttpMessageHandler -> Microsoft.AspNet.OData.Routing.ODataRoute
Public Sub New (routePrefix As String, pathConstraint As ODataPathRouteConstraint, defaults As HttpRouteValueDictionary, constraints As HttpRouteValueDictionary, dataTokens As HttpRouteValueDictionary, handler As HttpMessageHandler)

Parâmetros

routePrefix
String

O prefixo de rota.

pathConstraint
ODataPathRouteConstraint

A restrição do caminho OData.

defaults
System.Web.Http.Routing.HttpRouteValueDictionary

Os valores padrão para a rota.

constraints
System.Web.Http.Routing.HttpRouteValueDictionary

As restrições da rota.

dataTokens
System.Web.Http.Routing.HttpRouteValueDictionary

Os tokens de dados.

handler
HttpMessageHandler

O manipulador de mensagens da rota.

Comentários

Essa assinatura usa tipos específicos de AspNet.

Aplica-se a

ODataRoute(String, IHttpRouteConstraint, HttpRouteValueDictionary, HttpRouteValueDictionary, HttpRouteValueDictionary, HttpMessageHandler)

Inicializa uma nova instância da classe ODataRoute.

public ODataRoute (string routePrefix, System.Web.Http.Routing.IHttpRouteConstraint routeConstraint, System.Web.Http.Routing.HttpRouteValueDictionary defaults, System.Web.Http.Routing.HttpRouteValueDictionary constraints, System.Web.Http.Routing.HttpRouteValueDictionary dataTokens, System.Net.Http.HttpMessageHandler handler);
new Microsoft.AspNet.OData.Routing.ODataRoute : string * System.Web.Http.Routing.IHttpRouteConstraint * System.Web.Http.Routing.HttpRouteValueDictionary * System.Web.Http.Routing.HttpRouteValueDictionary * System.Web.Http.Routing.HttpRouteValueDictionary * System.Net.Http.HttpMessageHandler -> Microsoft.AspNet.OData.Routing.ODataRoute
Public Sub New (routePrefix As String, routeConstraint As IHttpRouteConstraint, defaults As HttpRouteValueDictionary, constraints As HttpRouteValueDictionary, dataTokens As HttpRouteValueDictionary, handler As HttpMessageHandler)

Parâmetros

routePrefix
String

O prefixo de rota.

routeConstraint
System.Web.Http.Routing.IHttpRouteConstraint

A restrição de rota.

defaults
System.Web.Http.Routing.HttpRouteValueDictionary

Os valores padrão para a rota.

constraints
System.Web.Http.Routing.HttpRouteValueDictionary

As restrições da rota.

dataTokens
System.Web.Http.Routing.HttpRouteValueDictionary

Os tokens de dados.

handler
HttpMessageHandler

O manipulador de mensagens da rota.

Comentários

Essa assinatura usa tipos específicos de AspNet.

Aplica-se a