Udostępnij za pośrednictwem


IdentityBuilder.AddClaimsPrincipalFactory<TFactory> Metoda

Definicja

Dodaje element IUserClaimsPrincipalFactory<TUser> dla elementu 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

Parametry typu

T TUser TFactory

Typ głównej fabryki oświadczeń.

Zwraca

Bieżące IdentityBuilder wystąpienie.

Dotyczy