AuthorizeAttribute Třída

Definice

Určuje, že třída nebo metoda, na kterou se tento atribut použije, vyžaduje zadanou autorizaci.

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
Dědičnost
AuthorizeAttribute
Atributy
Implementuje

Konstruktory

AuthorizeAttribute()

Inicializuje novou instanci AuthorizeAttribute třídy.

AuthorizeAttribute(String)

Inicializuje novou instanci AuthorizeAttribute třídy se zadanými zásadami.

Vlastnosti

ActiveAuthenticationSchemes
Zastaralé.

Získá nebo nastaví čárkami oddělený seznam schémat, ze kterých se vytvářejí informace o uživateli.

AuthenticationSchemes

Získá nebo nastaví čárkami oddělený seznam schémat, ze kterých se vytvářejí informace o uživateli.

Policy

Získá nebo nastaví název zásady, který určuje přístup k prostředku.

Roles

Získá nebo nastaví čárkami oddělený seznam rolí, které mají povolený přístup k prostředku.

Platí pro