IdentityBuilder.AddRoleValidator<TRole> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds an IRoleValidator<TRole> for the RoleType.
public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddRoleValidator<T> () where T : class;
public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddRoleValidator<TRole> () where TRole : class;
abstract member AddRoleValidator : unit -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'T : null)
override this.AddRoleValidator : unit -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'T : null)
abstract member AddRoleValidator : unit -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'Role : null)
override this.AddRoleValidator : unit -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'Role : null)
Public Overridable Function AddRoleValidator(Of T As Class) () As IdentityBuilder
Public Overridable Function AddRoleValidator(Of TRole As Class) () As IdentityBuilder
Type Parameters
- T TRole
The role validator type.
Returns
The current IdentityBuilder instance.