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)

適用於