RouteAreaAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |