Share via


RouteAttribute Constructor

 

Initializes a new instance of the RouteAttribute class.

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

Overload List

Name Description
System_CAPS_pubmethod RouteAttribute()

Initializes a new instance of the RouteAttribute class.

System_CAPS_pubmethod RouteAttribute(String)

Initializes a new instance of the RouteAttribute class with the specified template.

See Also

RouteAttribute Class
System.Web.Mvc Namespace

Return to top

RouteAttribute Constructor ()

Initializes a new instance of the RouteAttribute class.

Syntax

public RouteAttribute()
public:
RouteAttribute()
new : unit -> RouteAttribute
Public Sub New

Return to top

RouteAttribute Constructor (String)

Initializes a new instance of the RouteAttribute class with the specified template.

Syntax

public RouteAttribute(
    string template
)
public:
RouteAttribute(
    String^ template
)
new : 
        template:string -> RouteAttribute
Public Sub New (
    template As String
)

Parameters

  • template
    Type: System.String

    The pattern of the route to match.

Return to top