共用方式為


RolesAuthorizationRequirement(IEnumerable<String>) 建構函式

定義

建立 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))

參數

allowedRoles
IEnumerable<String>

允許的角色集合。

適用於