AuthorizeAttribute Třída

Definice

Určuje, že třída nebo metoda, na kterou tento atribut používá, 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í seznam schémat oddělených čárkami, ze kterých se vytvářejí informace o uživateli.

AuthenticationSchemes

Získá nebo nastaví seznam schémat oddělených čárkami, 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í seznam rolí oddělených čárkami, které mají povolený přístup k prostředku.

Platí pro