RouteAreaAttribute Class

 

Defines the area to set for all the routes defined in this controller.

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

System.Object
  System.Attribute
    System.Web.Mvc.RouteAreaAttribute

<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := False,
	Inherited := True)>
Public NotInheritable Class RouteAreaAttribute
	Inherits Attribute

NameDescription
System_CAPS_pubmethodRouteAreaAttribute()

Initializes a new instance of the RouteAreaAttribute class.

System_CAPS_pubmethodRouteAreaAttribute(String)

Initializes a new instance of the RouteAreaAttribute class.

NameDescription
System_CAPS_pubpropertyAreaName

Gets the area name to set for all the routes defined in the controller. If the value is null, an attempt will be made to infer the area name from the target controller's namespace.

System_CAPS_pubpropertyAreaPrefix

Gets the URL prefix to apply to the routes of this area. Defaults to the area's name.

System_CAPS_pubpropertyTypeId

(Inherited from Attribute.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethodMatch(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

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

Return to top
Show: