다음을 통해 공유


RoleManager<TRole> 생성자

정의

오버로드

RoleManager<TRole>(IRoleStore<TRole>, IEnumerable<IRoleValidator<TRole>>, ILookupNormalizer, IdentityErrorDescriber, ILogger<RoleManager<TRole>>)

RoleManager<TRole>의 새 인스턴스를 생성합니다.

RoleManager<TRole>(IRoleStore<TRole>, IEnumerable<IRoleValidator<TRole>>, ILookupNormalizer, IdentityErrorDescriber, ILogger<RoleManager<TRole>>, IHttpContextAccessor)

RoleManager<TRole>의 새 인스턴스를 생성합니다.

RoleManager<TRole>(IRoleStore<TRole>, IEnumerable<IRoleValidator<TRole>>, ILookupNormalizer, IdentityErrorDescriber, ILogger<RoleManager<TRole>>)

Source:
RoleManager.cs
Source:
RoleManager.cs
Source:
RoleManager.cs
Source:
RoleManager.cs
Source:
RoleManager.cs
Source:
RoleManager.cs
Source:
RoleManager.cs
Source:
RoleManager.cs
Source:
RoleManager.cs

RoleManager<TRole>의 새 인스턴스를 생성합니다.

public:
 RoleManager(Microsoft::AspNetCore::Identity::IRoleStore<TRole> ^ store, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Identity::IRoleValidator<TRole> ^> ^ roleValidators, Microsoft::AspNetCore::Identity::ILookupNormalizer ^ keyNormalizer, Microsoft::AspNetCore::Identity::IdentityErrorDescriber ^ errors, Microsoft::Extensions::Logging::ILogger<Microsoft::AspNetCore::Identity::RoleManager<TRole> ^> ^ logger);
public RoleManager (Microsoft.AspNetCore.Identity.IRoleStore<TRole> store, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Identity.IRoleValidator<TRole>> roleValidators, Microsoft.AspNetCore.Identity.ILookupNormalizer keyNormalizer, Microsoft.AspNetCore.Identity.IdentityErrorDescriber errors, Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Identity.RoleManager<TRole>> logger);
new Microsoft.AspNetCore.Identity.RoleManager<'Role (requires 'Role : null)> : Microsoft.AspNetCore.Identity.IRoleStore<'Role (requires 'Role : null)> * seq<Microsoft.AspNetCore.Identity.IRoleValidator<'Role>> * Microsoft.AspNetCore.Identity.ILookupNormalizer * Microsoft.AspNetCore.Identity.IdentityErrorDescriber * Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Identity.RoleManager<'Role>> -> Microsoft.AspNetCore.Identity.RoleManager<'Role (requires 'Role : null)>
Public Sub New (store As IRoleStore(Of TRole), roleValidators As IEnumerable(Of IRoleValidator(Of TRole)), keyNormalizer As ILookupNormalizer, errors As IdentityErrorDescriber, logger As ILogger(Of RoleManager(Of TRole)))

매개 변수

store
IRoleStore<TRole>

관리자가 운영할 지속성 저장소입니다.

roleValidators
IEnumerable<IRoleValidator<TRole>>

역할에 대한 유효성 검사기의 컬렉션입니다.

keyNormalizer
ILookupNormalizer

역할 이름을 키로 정규화할 때 사용할 정규화기입니다.

errors
IdentityErrorDescriber

IdentityErrorDescriber 공급자 오류 메시지에 사용되는 입니다.

logger
ILogger<RoleManager<TRole>>

메시지, 경고 및 오류를 기록하는 데 사용되는 로거입니다.

적용 대상

RoleManager<TRole>(IRoleStore<TRole>, IEnumerable<IRoleValidator<TRole>>, ILookupNormalizer, IdentityErrorDescriber, ILogger<RoleManager<TRole>>, IHttpContextAccessor)

RoleManager<TRole>의 새 인스턴스를 생성합니다.

public:
 RoleManager(Microsoft::AspNetCore::Identity::IRoleStore<TRole> ^ store, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Identity::IRoleValidator<TRole> ^> ^ roleValidators, Microsoft::AspNetCore::Identity::ILookupNormalizer ^ keyNormalizer, Microsoft::AspNetCore::Identity::IdentityErrorDescriber ^ errors, Microsoft::Extensions::Logging::ILogger<Microsoft::AspNetCore::Identity::RoleManager<TRole> ^> ^ logger, Microsoft::AspNetCore::Http::IHttpContextAccessor ^ contextAccessor);
public RoleManager (Microsoft.AspNetCore.Identity.IRoleStore<TRole> store, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Identity.IRoleValidator<TRole>> roleValidators, Microsoft.AspNetCore.Identity.ILookupNormalizer keyNormalizer, Microsoft.AspNetCore.Identity.IdentityErrorDescriber errors, Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Identity.RoleManager<TRole>> logger, Microsoft.AspNetCore.Http.IHttpContextAccessor contextAccessor);
new Microsoft.AspNetCore.Identity.RoleManager<'Role (requires 'Role : null)> : Microsoft.AspNetCore.Identity.IRoleStore<'Role (requires 'Role : null)> * seq<Microsoft.AspNetCore.Identity.IRoleValidator<'Role>> * Microsoft.AspNetCore.Identity.ILookupNormalizer * Microsoft.AspNetCore.Identity.IdentityErrorDescriber * Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Identity.RoleManager<'Role>> * Microsoft.AspNetCore.Http.IHttpContextAccessor -> Microsoft.AspNetCore.Identity.RoleManager<'Role (requires 'Role : null)>
Public Sub New (store As IRoleStore(Of TRole), roleValidators As IEnumerable(Of IRoleValidator(Of TRole)), keyNormalizer As ILookupNormalizer, errors As IdentityErrorDescriber, logger As ILogger(Of RoleManager(Of TRole)), contextAccessor As IHttpContextAccessor)

매개 변수

store
IRoleStore<TRole>

관리자가 운영할 지속성 저장소입니다.

roleValidators
IEnumerable<IRoleValidator<TRole>>

역할에 대한 유효성 검사기의 컬렉션입니다.

keyNormalizer
ILookupNormalizer

역할 이름을 키로 정규화할 때 사용할 정규화기입니다.

errors
IdentityErrorDescriber

IdentityErrorDescriber 공급자 오류 메시지에 사용되는 입니다.

logger
ILogger<RoleManager<TRole>>

메시지, 경고 및 오류를 기록하는 데 사용되는 로거입니다.

contextAccessor
IHttpContextAccessor

에 액세스하는 데 사용되는 접근자입니다 HttpContext.

적용 대상