Bagikan melalui


AllowAnonymousAttribute Kelas

Definisi

Menentukan bahwa kelas atau metode yang diterapkan atribut ini tidak memerlukan otorisasi.

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
Warisan
AllowAnonymousAttribute
Atribut
Penerapan

Konstruktor

AllowAnonymousAttribute()

Menentukan bahwa kelas atau metode yang diterapkan atribut ini tidak memerlukan otorisasi.

Metode

ToString()

Menentukan bahwa kelas atau metode yang diterapkan atribut ini tidak memerlukan otorisasi.

Berlaku untuk