Partager via


DefaultDirectRouteProvider.GetControllerDirectRoutes Méthode

Définition

Crée des RouteEntry instances basées sur les fabriques, le contrôleur et les actions fournis. Les entrées d'itinéraire fournissaient le routage direct vers le contrôleur indiqué et peuvent atteindre l'ensemble d'actions données.

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

Paramètres

controllerDescriptor
ControllerDescriptor

Descripteur du contrôleur.

actionDescriptors
IReadOnlyList<ActionDescriptor>

Descripteurs de l'action.

factories
IReadOnlyList<IDirectRouteFactory>

Fabriques d'itinéraire direct.

constraintResolver
IInlineConstraintResolver

Programme de résolution de contrainte.

Retours

Ensemble d'entrées d'itinéraire.

S’applique à