Dela via


AuthorizationPolicyBuilder.AddRequirements Method

Definition

Adds the specified requirements to the Requirements for this 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

Parameters

requirements
IAuthorizationRequirement[]

The authorization requirements to add.

Returns

A reference to this instance after the operation has completed.

Applies to