다음을 통해 공유


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 인스턴스입니다.

적용 대상