共用方式為


IdentityBuilder.AddPasswordValidator<TValidator> 方法

定義

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

類型參數

T TUser TValidator

用來驗證密碼的驗證程式類型。

傳回

目前的 IdentityBuilder 執行個體。

適用於