AllowAnonymousAttribute Kelas
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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. |