IdentityBuilder.AddClaimsPrincipalFactory<TFactory> Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Ajoute un IUserClaimsPrincipalFactory<TUser> pour .UserType
public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddClaimsPrincipalFactory<T> () where T : class;
public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddClaimsPrincipalFactory<TUser> () where TUser : class;
public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddClaimsPrincipalFactory<TFactory> () where TFactory : class;
abstract member AddClaimsPrincipalFactory : unit -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'T : null)
override this.AddClaimsPrincipalFactory : unit -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'T : null)
abstract member AddClaimsPrincipalFactory : unit -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'User : null)
override this.AddClaimsPrincipalFactory : unit -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'User : null)
abstract member AddClaimsPrincipalFactory : unit -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'Factory : null)
override this.AddClaimsPrincipalFactory : unit -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'Factory : null)
Public Overridable Function AddClaimsPrincipalFactory(Of T As Class) () As IdentityBuilder
Public Overridable Function AddClaimsPrincipalFactory(Of TUser As Class) () As IdentityBuilder
Public Overridable Function AddClaimsPrincipalFactory(Of TFactory As Class) () As IdentityBuilder
Paramètres de type
- T TUser TFactory
Type de la fabrique principale de revendications.
Retours
Instance actuelle de IdentityBuilder.