Share via


AreaAttribute Kelas

Definisi

Menentukan area yang berisi pengontrol atau tindakan.

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
Warisan
Atribut

Konstruktor

AreaAttribute(String)

Menginisialisasi instans baru AreaAttribute .

Properti

RouteKey

Kunci nilai rute.

(Diperoleh dari RouteValueAttribute)
RouteValue

Nilai rute. Jika null atau kosong, memerlukan nilai rute yang terkait dengan RouteKey hilang atau null.

(Diperoleh dari RouteValueAttribute)

Berlaku untuk