Freigeben über


DirectRouteFactoryContext Konstruktor

Definition

Initialisiert eine neue Instanz der DirectRouteFactoryContext-Klasse.

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)

Parameter

areaPrefix
String

Das vom Bereich definierte Routenpräfix, wenn vorhanden.

controllerPrefix
String

Das vom Controller definierte Routenpräfix, wenn vorhanden.

actions
IReadOnlyCollection<ActionDescriptor>

Der Aktionsdeskriptor, zu dem eine Route erstellt werden soll.

inlineConstraintResolver
IInlineConstraintResolver

Der Inlineeinschränkungskonfliktlöser.

targetIsAction
Boolean

Ein Wert, der angibt, ob die Route auf Aktions- oder Controllerebene konfiguriert ist.

Gilt für: