Compartilhar via


DefaultDirectRouteProvider.GetDirectRoutes Método

Definição

Obtém rotas diretas para o descritor de controlador e descritores de ação determinados com base em IDirectRouteFactory atributos.

public virtual System.Collections.Generic.IReadOnlyList<System.Web.Mvc.Routing.RouteEntry> GetDirectRoutes (System.Web.Mvc.ControllerDescriptor controllerDescriptor, System.Collections.Generic.IReadOnlyList<System.Web.Mvc.ActionDescriptor> actionDescriptors, System.Web.Mvc.Routing.IInlineConstraintResolver constraintResolver);
abstract member GetDirectRoutes : System.Web.Mvc.ControllerDescriptor * System.Collections.Generic.IReadOnlyList<System.Web.Mvc.ActionDescriptor> * System.Web.Mvc.Routing.IInlineConstraintResolver -> System.Collections.Generic.IReadOnlyList<System.Web.Mvc.Routing.RouteEntry>
override this.GetDirectRoutes : System.Web.Mvc.ControllerDescriptor * System.Collections.Generic.IReadOnlyList<System.Web.Mvc.ActionDescriptor> * System.Web.Mvc.Routing.IInlineConstraintResolver -> System.Collections.Generic.IReadOnlyList<System.Web.Mvc.Routing.RouteEntry>
Public Overridable Function GetDirectRoutes (controllerDescriptor As ControllerDescriptor, actionDescriptors As IReadOnlyList(Of ActionDescriptor), constraintResolver As IInlineConstraintResolver) As IReadOnlyList(Of RouteEntry)

Parâmetros

controllerDescriptor
ControllerDescriptor

O descritor do controlador.

actionDescriptors
IReadOnlyList<ActionDescriptor>

Os descritores de ação para todas as ações.

constraintResolver
IInlineConstraintResolver

O resolvedor de restrição.

Retornos

Um conjunto de entradas de rota.

Implementações

Aplica-se a