RouteAreaAttribute RouteAreaAttribute 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
RouteAreaAttributeRouteAreaAttributeRouteAreaAttribute
Attributes

Constructors

RouteAreaAttribute() RouteAreaAttribute() RouteAreaAttribute()

Initializes a new instance of the RouteAreaAttribute class.

RouteAreaAttribute(String) RouteAreaAttribute(String) RouteAreaAttribute(String)

Initializes a new instance of the RouteAreaAttribute class.

Properties

AreaName AreaName 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 AreaPrefix AreaPrefix

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

Applies to