DefaultDirectRouteProvider.GetActionDirectRoutes 方法

定义

RouteEntry基于提供的工厂和操作创建实例。 路由项提供指向提供的操作的直接路由。

protected virtual System.Collections.Generic.IReadOnlyList<System.Web.Mvc.Routing.RouteEntry> GetActionDirectRoutes(System.Web.Mvc.ActionDescriptor actionDescriptor, System.Collections.Generic.IReadOnlyList<System.Web.Mvc.Routing.IDirectRouteFactory> factories, System.Web.Mvc.Routing.IInlineConstraintResolver constraintResolver);
abstract member GetActionDirectRoutes : 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.GetActionDirectRoutes : 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 GetActionDirectRoutes (actionDescriptor As ActionDescriptor, factories As IReadOnlyList(Of IDirectRouteFactory), constraintResolver As IInlineConstraintResolver) As IReadOnlyList(Of RouteEntry)

参数

actionDescriptor
ActionDescriptor

操作描述符。

factories
IReadOnlyList<IDirectRouteFactory>

直接路由工厂。

constraintResolver
IInlineConstraintResolver

约束解析程序。

返回

一组路由项。

适用于