AreaAttribute 类

定义

指定包含控制器或操作的区域。

public ref class AreaAttribute : Microsoft::AspNetCore::Mvc::Routing::RouteValueAttribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public class AreaAttribute : Microsoft.AspNetCore.Mvc.Routing.RouteValueAttribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type AreaAttribute = class
    inherit RouteValueAttribute
Public Class AreaAttribute
Inherits RouteValueAttribute
继承
属性

构造函数

AreaAttribute(String)

初始化一个新 AreaAttribute 实例。

属性

RouteKey

路由值键。

(继承自 RouteValueAttribute)
RouteValue

路由值。 如果 null 为空,则要求缺少关联的 RouteKey 路由值或 null

(继承自 RouteValueAttribute)

适用于