UserClaimsPrincipalFactory<TUser,TRole> 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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>)
初始化 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。