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 类的新实例。

适用于