Sdílet prostřednictvím


DefaultDirectRouteProvider.GetDirectRoutes Metoda

Definice

Získá přímé trasy pro daný popisovač kontroleru a deskriptory akcí na IDirectRouteFactory základě atributů.

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)

Parametry

controllerDescriptor
ControllerDescriptor

Popisovač kontroleru

actionDescriptors
IReadOnlyList<ActionDescriptor>

Popisovače akcí pro všechny akce.

constraintResolver
IInlineConstraintResolver

Překladač omezení.

Návraty

Sada položek trasy.

Implementuje

Platí pro