Condividi tramite


UserClaimsPrincipalFactory<TUser,TRole> Costruttori

Definizione

Overload

UserClaimsPrincipalFactory<TUser,TRole>(UserManager<TUser>, RoleManager<TRole>, IOptions<IdentityOptions>)

Inizializza una nuova istanza della classe UserClaimsPrincipalFactory<TUser,TRole>.

UserClaimsPrincipalFactory<TUser,TRole>(UserManager<TUser>, RoleManager<TRole>, IOptions<IdentityOptions>)

Inizializza una nuova istanza della classe UserClaimsPrincipalFactory<TUser,TRole>.

UserClaimsPrincipalFactory<TUser,TRole>(UserManager<TUser>, RoleManager<TRole>, IOptions<IdentityOptions>)

Inizializza una nuova istanza della classe UserClaimsPrincipalFactory<TUser,TRole>.

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

Parametri

userManager
UserManager<TUser>

Oggetto UserManager<TUser> da cui recuperare le informazioni utente.

roleManager
RoleManager<TRole>

Oggetto RoleManager<TRole> da cui recuperare i ruoli di un utente.

optionsAccessor
IOptions<IdentityOptions>

IdentityOptions configurato.

Si applica a

UserClaimsPrincipalFactory<TUser,TRole>(UserManager<TUser>, RoleManager<TRole>, IOptions<IdentityOptions>)

Origine:
UserClaimsPrincipalFactory.cs
Origine:
UserClaimsPrincipalFactory.cs
Origine:
UserClaimsPrincipalFactory.cs
Origine:
UserClaimsPrincipalFactory.cs
Origine:
UserClaimsPrincipalFactory.cs
Origine:
UserClaimsPrincipalFactory.cs
Origine:
UserClaimsPrincipalFactory.cs
Origine:
UserClaimsPrincipalFactory.cs
Origine:
UserClaimsPrincipalFactory.cs

Inizializza una nuova istanza della classe UserClaimsPrincipalFactory<TUser,TRole>.

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

Parametri

userManager
UserManager<TUser>

Oggetto UserManager<TUser> da cui recuperare le informazioni utente.

roleManager
RoleManager<TRole>

Oggetto RoleManager<TRole> da cui recuperare i ruoli di un utente.

options
IOptions<IdentityOptions>

IdentityOptions configurato.

Si applica a