RoleValidator<TRole> 類別

定義

提供角色的預設驗證。

generic <typename TRole>
 where TRole : classpublic ref class RoleValidator : Microsoft::AspNetCore::Identity::IRoleValidator<TRole>
public class RoleValidator<TRole> : Microsoft.AspNetCore.Identity.IRoleValidator<TRole> where TRole : class
type RoleValidator<'Role (requires 'Role : null)> = class
    interface IRoleValidator<'Role (requires 'Role : null)>
Public Class RoleValidator(Of TRole)
Implements IRoleValidator(Of TRole)

類型參數

TRole

封裝角色的類型。

繼承
RoleValidator<TRole>
實作

建構函式

RoleValidator<TRole>(IdentityErrorDescriber)

建立 RoleValidator<TRole> 的新執行個體。

方法

ValidateAsync(RoleManager<TRole>, TRole)

將角色驗證為非同步作業。

適用於