Share via


DirectRouteFactoryContext Constructor

Definition

Initializes a new instance of the DirectRouteFactoryContext class.

public DirectRouteFactoryContext (string areaPrefix, string controllerPrefix, System.Collections.Generic.IReadOnlyCollection<System.Web.Mvc.ActionDescriptor> actions, System.Web.Mvc.Routing.IInlineConstraintResolver inlineConstraintResolver, bool targetIsAction);
new System.Web.Mvc.Routing.DirectRouteFactoryContext : string * string * System.Collections.Generic.IReadOnlyCollection<System.Web.Mvc.ActionDescriptor> * System.Web.Mvc.Routing.IInlineConstraintResolver * bool -> System.Web.Mvc.Routing.DirectRouteFactoryContext
Public Sub New (areaPrefix As String, controllerPrefix As String, actions As IReadOnlyCollection(Of ActionDescriptor), inlineConstraintResolver As IInlineConstraintResolver, targetIsAction As Boolean)

Parameters

areaPrefix
String

The route prefix, if any, defined by the area.

controllerPrefix
String

The route prefix, if any, defined by the controller.

actions
IReadOnlyCollection<ActionDescriptor>

The action descriptors to which to create a route.

inlineConstraintResolver
IInlineConstraintResolver

The inline constraint resolver.

targetIsAction
Boolean

A value indicating whether the route is configured at the action or controller level.

Applies to