Compartir a través de


AuthorizationPolicyBuilder.AddRequirements Método

Definición

Agrega el objeto especificado requirements a Requirements para esta instancia.

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[]

Requisitos de autorización que se van a agregar.

Devoluciones

Una referencia a esta instancia después de que se haya completado la operación.

Se aplica a