RoleManager<TRole> Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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
Constructs a new instance of 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)))
Parameters
- store
- IRoleStore<TRole>
The persistence store the manager will operate over.
- roleValidators
- IEnumerable<IRoleValidator<TRole>>
A collection of validators for roles.
- keyNormalizer
- ILookupNormalizer
The normalizer to use when normalizing role names to keys.
- errors
- IdentityErrorDescriber
The IdentityErrorDescriber used to provider error messages.
- logger
- ILogger<RoleManager<TRole>>
The logger used to log messages, warnings and errors.
Applies to
RoleManager<TRole>(IRoleStore<TRole>, IEnumerable<IRoleValidator<TRole>>, ILookupNormalizer, IdentityErrorDescriber, ILogger<RoleManager<TRole>>, IHttpContextAccessor)
Constructs a new instance of 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)
Parameters
- store
- IRoleStore<TRole>
The persistence store the manager will operate over.
- roleValidators
- IEnumerable<IRoleValidator<TRole>>
A collection of validators for roles.
- keyNormalizer
- ILookupNormalizer
The normalizer to use when normalizing role names to keys.
- errors
- IdentityErrorDescriber
The IdentityErrorDescriber used to provider error messages.
- logger
- ILogger<RoleManager<TRole>>
The logger used to log messages, warnings and errors.
- contextAccessor
- IHttpContextAccessor
The accessor used to access the HttpContext.