RoleValidator<TRole>(IdentityErrorDescriber) 构造函数

定义

创建 RoleValidator<TRole> 的新实例。

public RoleValidator (Microsoft.AspNetCore.Identity.IdentityErrorDescriber errors = default);
public RoleValidator (Microsoft.AspNetCore.Identity.IdentityErrorDescriber? errors = default);
new Microsoft.AspNetCore.Identity.RoleValidator<'Role (requires 'Role : null)> : Microsoft.AspNetCore.Identity.IdentityErrorDescriber -> Microsoft.AspNetCore.Identity.RoleValidator<'Role (requires 'Role : null)>
Public Sub New (Optional errors As IdentityErrorDescriber = Nothing)

参数

errors
IdentityErrorDescriber

IdentityErrorDescriber用于提供错误消息的 。

适用于