Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

RoutePrefixAttribute Class

Annotates a controller with a route prefix that applies to all actions within the controller.

System.Object
  System.Attribute
    System.Web.Mvc.RoutePrefixAttribute

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

[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public class RoutePrefixAttribute : Attribute, 
	IRoutePrefix

The RoutePrefixAttribute type exposes the following members.

  NameDescription
Protected methodRoutePrefixAttribute()Initializes a new instance of the RoutePrefixAttribute class.
Public methodRoutePrefixAttribute(String)Initializes a new instance of the RoutePrefixAttribute class with the specified prefix.
Top

  NameDescription
Public propertyPrefixGets the route prefix.
Public propertyTypeId (Inherited from Attribute.)
Top

  NameDescription
Public methodEquals (Inherited from Attribute.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Attribute.)
Public methodGetType (Inherited from Object.)
Public methodIsDefaultAttribute (Inherited from Attribute.)
Public methodMatch (Inherited from Attribute.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft