AllowAnonymousAttribute 類別

定義

表示屬性,這個屬性會標記在授權期間略過 AuthorizeAttribute 的控制器和動作。

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public sealed class AllowAnonymousAttribute : Attribute
type AllowAnonymousAttribute = class
    inherit Attribute
Public NotInheritable Class AllowAnonymousAttribute
Inherits Attribute
繼承
AllowAnonymousAttribute
屬性

建構函式

AllowAnonymousAttribute()

初始化 AllowAnonymousAttribute 類別的新執行個體。

適用於