AuthorizationPolicyBuilder.AddRequirements Methode

Definition

Fügt dem für diesen instance den angegebenen requirements hinzuRequirements.

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

Parameter

requirements
IAuthorizationRequirement[]

Die hinzuzufügenden Autorisierungsanforderungen.

Gibt zurück

Ein Verweis auf diese Instanz, nachdem der Vorgang abgeschlossen ist.

Gilt für: