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


IdentityBuilder.AddUserValidator<TValidator> Метод

Определение

Добавляет для IUserValidator<TUser>UserType.

public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddUserValidator<T> () where T : class;
public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddUserValidator<TUser> () where TUser : class;
public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddUserValidator<TValidator> () where TValidator : class;
abstract member AddUserValidator : unit -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'T : null)
override this.AddUserValidator : unit -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'T : null)
abstract member AddUserValidator : unit -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'User : null)
override this.AddUserValidator : unit -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'User : null)
abstract member AddUserValidator : unit -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'Validator : null)
override this.AddUserValidator : unit -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'Validator : null)
Public Overridable Function AddUserValidator(Of T As Class) () As IdentityBuilder
Public Overridable Function AddUserValidator(Of TUser As Class) () As IdentityBuilder
Public Overridable Function AddUserValidator(Of TValidator As Class) () As IdentityBuilder

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

T TUser TValidator

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

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

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

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