IdentityBuilder.AddRoleValidator<TRole> Method

Definition

Adds an IRoleValidator<TRole> for the RoleType.

C#
public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddRoleValidator<T> () where T : class;
C#
public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddRoleValidator<TRole> () where TRole : class;

Type Parameters

T TRole

The role validator type.

Returns

The current IdentityBuilder instance.

Applies to

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0