RolesAuthorizationRequirement(IEnumerable<String>) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.