AuthorizationPolicyBuilder.AddRequirements Método

Definição

Adiciona o especificado requirements ao Requirements para esta instância.

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

Parâmetros

requirements
IAuthorizationRequirement[]

Os requisitos de autorização a serem adicionados.

Retornos

Uma referência a essa instância após a operação ter sido concluída.

Aplica-se a