Compartir a través de


UserClaimsPrincipalFactory<TUser> Constructor

Definición

Inicializa una nueva instancia de la clase 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))

Parámetros

userManager
UserManager<TUser>

del UserManager<TUser> que se va a recuperar la información del usuario.

optionsAccessor
IOptions<IdentityOptions>

El valor IdentityOptions configurado.

Se aplica a