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()

返回一个表示当前属性的字符串。

适用于