Поделиться через


IdentityBuilder.AddRoleValidator<TRole> Метод

Определение

Добавляет для IRoleValidator<TRole>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

Параметры типа

T TRole

Тип проверяющего элемента управления роли.

Возвращаемое значение

Текущий экземпляр IdentityBuilder.

Применяется к