Share via


RoutePrefixAttribute Constructors

Definition

Overloads

RoutePrefixAttribute()

Initializes a new instance of the RoutePrefixAttribute class.

RoutePrefixAttribute(String)

Initializes a new instance of the RoutePrefixAttribute class with the specified prefix.

RoutePrefixAttribute()

Initializes a new instance of the RoutePrefixAttribute class.

protected RoutePrefixAttribute ();
Protected Sub New ()

Applies to

RoutePrefixAttribute(String)

Initializes a new instance of the RoutePrefixAttribute class with the specified prefix.

public RoutePrefixAttribute (string prefix);
new System.Web.Mvc.RoutePrefixAttribute : string -> System.Web.Mvc.RoutePrefixAttribute
Public Sub New (prefix As String)

Parameters

prefix
String

The route prefix for the controller.

Applies to