RolesAuthorizationRequirement(IEnumerable<String>) Constructor

Definition

Creates a new instance of 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))

Parameters

allowedRoles
IEnumerable<String>

A collection of allowed roles.

Applies to