共用方式為


UserManager<TUser> 建構函式

定義

多載

UserManager<TUser>(IUserStore<TUser>, IOptions<IdentityOptions>, IPasswordHasher<TUser>, IEnumerable<IUserValidator<TUser>>, IEnumerable<IPasswordValidator<TUser>>, ILookupNormalizer, IdentityErrorDescriber, IServiceProvider, ILogger<UserManager<TUser>>)

建構 UserManager<TUser> 的新執行個體。

UserManager<TUser>(IUserStore<TUser>, IOptions<IdentityOptions>, IPasswordHasher<TUser>, IEnumerable<IUserValidator<TUser>>, IEnumerable<IPasswordValidator<TUser>>, ILookupNormalizer, IdentityErrorDescriber, IServiceProvider, ILogger<UserManager<TUser>>)

建構 UserManager<TUser> 的新執行個體。

UserManager<TUser>(IUserStore<TUser>, IOptions<IdentityOptions>, IPasswordHasher<TUser>, IEnumerable<IUserValidator<TUser>>, IEnumerable<IPasswordValidator<TUser>>, ILookupNormalizer, IdentityErrorDescriber, IServiceProvider, ILogger<UserManager<TUser>>)

建構 UserManager<TUser> 的新執行個體。

public:
 UserManager(Microsoft::AspNetCore::Identity::IUserStore<TUser> ^ store, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::IdentityOptions ^> ^ optionsAccessor, Microsoft::AspNetCore::Identity::IPasswordHasher<TUser> ^ passwordHasher, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Identity::IUserValidator<TUser> ^> ^ userValidators, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Identity::IPasswordValidator<TUser> ^> ^ passwordValidators, Microsoft::AspNetCore::Identity::ILookupNormalizer ^ keyNormalizer, Microsoft::AspNetCore::Identity::IdentityErrorDescriber ^ errors, IServiceProvider ^ services, Microsoft::Extensions::Logging::ILogger<Microsoft::AspNetCore::Identity::UserManager<TUser> ^> ^ logger);
public UserManager (Microsoft.AspNetCore.Identity.IUserStore<TUser> store, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.IdentityOptions> optionsAccessor, Microsoft.AspNetCore.Identity.IPasswordHasher<TUser> passwordHasher, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Identity.IUserValidator<TUser>> userValidators, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Identity.IPasswordValidator<TUser>> passwordValidators, Microsoft.AspNetCore.Identity.ILookupNormalizer keyNormalizer, Microsoft.AspNetCore.Identity.IdentityErrorDescriber errors, IServiceProvider services, Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Identity.UserManager<TUser>> logger);
new Microsoft.AspNetCore.Identity.UserManager<'User (requires 'User : null)> : Microsoft.AspNetCore.Identity.IUserStore<'User (requires 'User : null)> * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.IdentityOptions> * Microsoft.AspNetCore.Identity.IPasswordHasher<'User (requires 'User : null)> * seq<Microsoft.AspNetCore.Identity.IUserValidator<'User>> * seq<Microsoft.AspNetCore.Identity.IPasswordValidator<'User>> * Microsoft.AspNetCore.Identity.ILookupNormalizer * Microsoft.AspNetCore.Identity.IdentityErrorDescriber * IServiceProvider * Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Identity.UserManager<'User>> -> Microsoft.AspNetCore.Identity.UserManager<'User (requires 'User : null)>
Public Sub New (store As IUserStore(Of TUser), optionsAccessor As IOptions(Of IdentityOptions), passwordHasher As IPasswordHasher(Of TUser), userValidators As IEnumerable(Of IUserValidator(Of TUser)), passwordValidators As IEnumerable(Of IPasswordValidator(Of TUser)), keyNormalizer As ILookupNormalizer, errors As IdentityErrorDescriber, services As IServiceProvider, logger As ILogger(Of UserManager(Of TUser)))

參數

store
IUserStore<TUser>

管理員將會運作的持續性存放區。

optionsAccessor
IOptions<IdentityOptions>

用來存取 的 IdentityOptions 存取子。

passwordHasher
IPasswordHasher<TUser>

儲存密碼時要使用的密碼雜湊實作。

userValidators
IEnumerable<IUserValidator<TUser>>

IUserValidator<TUser> 集合,用來驗證使用者。

passwordValidators
IEnumerable<IPasswordValidator<TUser>>

IPasswordValidator<TUser> 驗證密碼的集合。

keyNormalizer
ILookupNormalizer

ILookupNormalizer 使用者產生索引鍵時要使用的 。

errors
IdentityErrorDescriber

IdentityErrorDescriber用來提供者錯誤訊息的 。

services
IServiceProvider

IServiceProvider用來解析服務的 。

logger
ILogger<UserManager<TUser>>

用來記錄訊息、警告和錯誤的記錄器。

適用於

UserManager<TUser>(IUserStore<TUser>, IOptions<IdentityOptions>, IPasswordHasher<TUser>, IEnumerable<IUserValidator<TUser>>, IEnumerable<IPasswordValidator<TUser>>, ILookupNormalizer, IdentityErrorDescriber, IServiceProvider, ILogger<UserManager<TUser>>)

來源:
UserManager.cs
來源:
UserManager.cs
來源:
UserManager.cs
來源:
UserManager.cs
來源:
UserManager.cs
來源:
UserManager.cs
來源:
UserManager.cs
來源:
UserManager.cs
來源:
UserManager.cs

建構 UserManager<TUser> 的新執行個體。

public:
 UserManager(Microsoft::AspNetCore::Identity::IUserStore<TUser> ^ store, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Identity::IdentityOptions ^> ^ optionsAccessor, Microsoft::AspNetCore::Identity::IPasswordHasher<TUser> ^ passwordHasher, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Identity::IUserValidator<TUser> ^> ^ userValidators, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Identity::IPasswordValidator<TUser> ^> ^ passwordValidators, Microsoft::AspNetCore::Identity::ILookupNormalizer ^ keyNormalizer, Microsoft::AspNetCore::Identity::IdentityErrorDescriber ^ errors, IServiceProvider ^ services, Microsoft::Extensions::Logging::ILogger<Microsoft::AspNetCore::Identity::UserManager<TUser> ^> ^ logger);
public UserManager (Microsoft.AspNetCore.Identity.IUserStore<TUser> store, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.IdentityOptions> optionsAccessor, Microsoft.AspNetCore.Identity.IPasswordHasher<TUser> passwordHasher, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Identity.IUserValidator<TUser>> userValidators, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Identity.IPasswordValidator<TUser>> passwordValidators, Microsoft.AspNetCore.Identity.ILookupNormalizer keyNormalizer, Microsoft.AspNetCore.Identity.IdentityErrorDescriber errors, IServiceProvider services, Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Identity.UserManager<TUser>> logger);
new Microsoft.AspNetCore.Identity.UserManager<'User (requires 'User : null)> : Microsoft.AspNetCore.Identity.IUserStore<'User (requires 'User : null)> * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.IdentityOptions> * Microsoft.AspNetCore.Identity.IPasswordHasher<'User (requires 'User : null)> * seq<Microsoft.AspNetCore.Identity.IUserValidator<'User>> * seq<Microsoft.AspNetCore.Identity.IPasswordValidator<'User>> * Microsoft.AspNetCore.Identity.ILookupNormalizer * Microsoft.AspNetCore.Identity.IdentityErrorDescriber * IServiceProvider * Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Identity.UserManager<'User>> -> Microsoft.AspNetCore.Identity.UserManager<'User (requires 'User : null)>
Public Sub New (store As IUserStore(Of TUser), optionsAccessor As IOptions(Of IdentityOptions), passwordHasher As IPasswordHasher(Of TUser), userValidators As IEnumerable(Of IUserValidator(Of TUser)), passwordValidators As IEnumerable(Of IPasswordValidator(Of TUser)), keyNormalizer As ILookupNormalizer, errors As IdentityErrorDescriber, services As IServiceProvider, logger As ILogger(Of UserManager(Of TUser)))

參數

store
IUserStore<TUser>

管理員將會運作的持續性存放區。

optionsAccessor
IOptions<IdentityOptions>

用來存取 的 IdentityOptions 存取子。

passwordHasher
IPasswordHasher<TUser>

儲存密碼時要使用的密碼雜湊實作。

userValidators
IEnumerable<IUserValidator<TUser>>

IUserValidator<TUser> 集合,用來驗證使用者。

passwordValidators
IEnumerable<IPasswordValidator<TUser>>

IPasswordValidator<TUser> 驗證密碼的集合。

keyNormalizer
ILookupNormalizer

ILookupNormalizer 使用者產生索引鍵時要使用的 。

errors
IdentityErrorDescriber

IdentityErrorDescriber用來提供者錯誤訊息的 。

services
IServiceProvider

IServiceProvider用來解析服務的 。

logger
ILogger<UserManager<TUser>>

用來記錄訊息、警告和錯誤的記錄器。

適用於