共用方式為


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

指定套用此屬性的類別或方法不需要授權。

適用於