AllowAnonymousAttribute 类

定义

指定应用此属性的类或方法不需要授权。

public ref class AllowAnonymousAttribute : Attribute, Microsoft::AspNetCore::Authorization::IAllowAnonymous
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public class AllowAnonymousAttribute : Attribute, Microsoft.AspNetCore.Authorization.IAllowAnonymous
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type AllowAnonymousAttribute = class
    inherit Attribute
    interface IAllowAnonymous
Public Class AllowAnonymousAttribute
Inherits Attribute
Implements IAllowAnonymous
继承
AllowAnonymousAttribute
属性
实现

构造函数

AllowAnonymousAttribute()

指定应用此属性的类或方法不需要授权。

方法

ToString()

指定应用此属性的类或方法不需要授权。

适用于