UserClaimsPrincipalFactory<TUser,TRole> 构造函数

定义

重载

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

初始化 UserClaimsPrincipalFactory<TUser,TRole> 类的新实例。

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

初始化 UserClaimsPrincipalFactory<TUser,TRole> 类的新实例。

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

初始化 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))

参数

userManager
UserManager<TUser>

UserManager<TUser> 从中检索用户信息的 。

roleManager
RoleManager<TRole>

RoleManager<TRole> 从中检索用户角色的 。

optionsAccessor
IOptions<IdentityOptions>

已配置的 IdentityOptions

适用于

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

初始化 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))

参数

userManager
UserManager<TUser>

UserManager<TUser> 从中检索用户信息的 。

roleManager
RoleManager<TRole>

RoleManager<TRole> 从中检索用户角色的 。

options
IOptions<IdentityOptions>

已配置的 IdentityOptions

适用于