RouteAreaAttribute Class

Definition

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

[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)]
public sealed class RouteAreaAttribute : Attribute
type RouteAreaAttribute = class
    inherit Attribute
Public NotInheritable Class RouteAreaAttribute
Inherits Attribute
Inheritance
RouteAreaAttribute
Attributes

Constructors

RouteAreaAttribute()

Initializes a new instance of the RouteAreaAttribute class.

RouteAreaAttribute(String)

Initializes a new instance of the RouteAreaAttribute class.

Properties

AreaName

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.

AreaPrefix

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

Applies to