Sdílet prostřednictvím


RolesAuthorizationRequirement(IEnumerable<String>) Konstruktor

Definice

Vytvoří novou instanci položky RolesAuthorizationRequirement.

public:
 RolesAuthorizationRequirement(System::Collections::Generic::IEnumerable<System::String ^> ^ allowedRoles);
public RolesAuthorizationRequirement (System.Collections.Generic.IEnumerable<string> allowedRoles);
new Microsoft.AspNetCore.Authorization.Infrastructure.RolesAuthorizationRequirement : seq<string> -> Microsoft.AspNetCore.Authorization.Infrastructure.RolesAuthorizationRequirement
Public Sub New (allowedRoles As IEnumerable(Of String))

Parametry

allowedRoles
IEnumerable<String>

Kolekce povolených rolí.

Platí pro