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>)
- Исходный код:
- UserClaimsPrincipalFactory.cs
- Исходный код:
- UserClaimsPrincipalFactory.cs
- Исходный код:
- UserClaimsPrincipalFactory.cs
- Исходный код:
- UserClaimsPrincipalFactory.cs
- Исходный код:
- UserClaimsPrincipalFactory.cs
- Исходный код:
- UserClaimsPrincipalFactory.cs
- Исходный код:
- UserClaimsPrincipalFactory.cs
- Исходный код:
- UserClaimsPrincipalFactory.cs
- Исходный код:
- 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.