Partager via


AuthorizationPolicyBuilder.AddRequirements Méthode

Définition

Ajoute le spécifié requirements au Requirements pour cette instance.

public:
 Microsoft::AspNetCore::Authorization::AuthorizationPolicyBuilder ^ AddRequirements(... cli::array <Microsoft::AspNetCore::Authorization::IAuthorizationRequirement ^> ^ requirements);
public Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder AddRequirements (params Microsoft.AspNetCore.Authorization.IAuthorizationRequirement[] requirements);
member this.AddRequirements : Microsoft.AspNetCore.Authorization.IAuthorizationRequirement[] -> Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder
Public Function AddRequirements (ParamArray requirements As IAuthorizationRequirement()) As AuthorizationPolicyBuilder

Paramètres

requirements
IAuthorizationRequirement[]

Exigences d’autorisation à ajouter.

Retours

Référence à cette instance à la fin de l’opération.

S’applique à