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


IdentityBuilder.AddClaimsPrincipalFactory<TFactory> Метод

Определение

Добавляет для IUserClaimsPrincipalFactory<TUser>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

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

T TUser TFactory

Тип фабрики субъектов утверждений.

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

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

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