AuthorizeAttribute Klasa

Definicja

Określa, że klasa lub metoda, która jest stosowana do tego atrybutu, wymaga określonej autoryzacji.

public ref class AuthorizeAttribute : Attribute, Microsoft::AspNetCore::Authorization::IAuthorizeData
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)]
public class AuthorizeAttribute : Attribute, Microsoft.AspNetCore.Authorization.IAuthorizeData
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)>]
type AuthorizeAttribute = class
    inherit Attribute
    interface IAuthorizeData
Public Class AuthorizeAttribute
Inherits Attribute
Implements IAuthorizeData
Dziedziczenie
AuthorizeAttribute
Atrybuty
Implementuje

Konstruktory

AuthorizeAttribute()

Inicjuje nowe wystąpienie klasy AuthorizeAttribute.

AuthorizeAttribute(String)

Inicjuje AuthorizeAttribute nowe wystąpienie klasy z określonymi zasadami.

Właściwości

ActiveAuthenticationSchemes
Przestarzałe.

Pobiera lub ustawia rozdzieloną przecinkami listę schematów, z których tworzone są informacje o użytkowniku.

AuthenticationSchemes

Pobiera lub ustawia rozdzieloną przecinkami listę schematów, z których tworzone są informacje o użytkowniku.

Policy

Pobiera lub ustawia nazwę zasad, która określa dostęp do zasobu.

Roles

Pobiera lub ustawia rozdzielaną przecinkami listę ról, które mogą uzyskiwać dostęp do zasobu.

Metody

ToString()

Określa, że klasa lub metoda, która jest stosowana do tego atrybutu, wymaga określonej autoryzacji.

Dotyczy