Share via


DirectRouteFactoryContext Constructor (String, String, IReadOnlyCollection<ActionDescriptor>, IInlineConstraintResolver, Boolean)

 

Initializes a new instance of the DirectRouteFactoryContext class.

Namespace:   System.Web.Mvc.Routing
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

public DirectRouteFactoryContext(
    string areaPrefix,
    string controllerPrefix,
    IReadOnlyCollection<ActionDescriptor> actions,
    IInlineConstraintResolver inlineConstraintResolver,
    bool targetIsAction
)
public:
DirectRouteFactoryContext(
    String^ areaPrefix,
    String^ controllerPrefix,
    IReadOnlyCollection<ActionDescriptor^>^ actions,
    IInlineConstraintResolver^ inlineConstraintResolver,
    bool targetIsAction
)
new : 
        areaPrefix:string *
        controllerPrefix:string *
        actions:IReadOnlyCollection<ActionDescriptor> *
        inlineConstraintResolver:IInlineConstraintResolver *
        targetIsAction:bool -> DirectRouteFactoryContext
Public Sub New (
    areaPrefix As String,
    controllerPrefix As String,
    actions As IReadOnlyCollection(Of ActionDescriptor),
    inlineConstraintResolver As IInlineConstraintResolver,
    targetIsAction As Boolean
)

Parameters

  • areaPrefix
    Type: System.String

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

  • controllerPrefix
    Type: System.String

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

  • targetIsAction
    Type: System.Boolean

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

See Also

DirectRouteFactoryContext Class
System.Web.Mvc.Routing Namespace

Return to top