Udostępnij za pośrednictwem


UserClaimsPrincipalFactory<TUser> Konstruktor

Definicja

Inicjuje nowe wystąpienie klasy UserClaimsPrincipalFactory<TUser>.

public:
 UserClaimsPrincipalFactory(Microsoft::AspNetCore::Identity::UserManager<TUser> ^ userManager, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Identity::IdentityOptions ^> ^ optionsAccessor);
public UserClaimsPrincipalFactory (Microsoft.AspNetCore.Identity.UserManager<TUser> userManager, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.IdentityOptions> optionsAccessor);
new Microsoft.AspNetCore.Identity.UserClaimsPrincipalFactory<'User (requires 'User : null)> : Microsoft.AspNetCore.Identity.UserManager<'User (requires 'User : null)> * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.IdentityOptions> -> Microsoft.AspNetCore.Identity.UserClaimsPrincipalFactory<'User (requires 'User : null)>
Public Sub New (userManager As UserManager(Of TUser), optionsAccessor As IOptions(Of IdentityOptions))

Parametry

userManager
UserManager<TUser>

Element do pobierania UserManager<TUser> informacji o użytkowniku.

optionsAccessor
IOptions<IdentityOptions>

Skonfigurowany IdentityOptionselement .

Dotyczy