Condividi tramite


RolesAuthorizationRequirement(IEnumerable<String>) Costruttore

Definizione

Crea una nuova istanza di 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))

Parametri

allowedRoles
IEnumerable<String>

Raccolta di ruoli consentiti.

Si applica a