Share via


UserClaimsPrincipalFactory<TUser,TRole> Constructors

Definition

Overloads

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

Initializes a new instance of the UserClaimsPrincipalFactory<TUser,TRole> class.

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

Initializes a new instance of the UserClaimsPrincipalFactory<TUser,TRole> class.

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

Initializes a new instance of the UserClaimsPrincipalFactory<TUser,TRole> class.

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))

Parameters

userManager
UserManager<TUser>

The UserManager<TUser> to retrieve user information from.

roleManager
RoleManager<TRole>

The RoleManager<TRole> to retrieve a user's roles from.

optionsAccessor
IOptions<IdentityOptions>

The configured IdentityOptions.

Applies to

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

Source:
UserClaimsPrincipalFactory.cs
Source:
UserClaimsPrincipalFactory.cs
Source:
UserClaimsPrincipalFactory.cs
Source:
UserClaimsPrincipalFactory.cs
Source:
UserClaimsPrincipalFactory.cs
Source:
UserClaimsPrincipalFactory.cs
Source:
UserClaimsPrincipalFactory.cs
Source:
UserClaimsPrincipalFactory.cs
Source:
UserClaimsPrincipalFactory.cs

Initializes a new instance of the UserClaimsPrincipalFactory<TUser,TRole> class.

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))

Parameters

userManager
UserManager<TUser>

The UserManager<TUser> to retrieve user information from.

roleManager
RoleManager<TRole>

The RoleManager<TRole> to retrieve a user's roles from.

options
IOptions<IdentityOptions>

The configured IdentityOptions.

Applies to